Amanda-Users

Re: Restoring from a holding disk?

2007-09-07 14:40:51
Subject: Re: Restoring from a holding disk?
From: Jean-Louis Martineau <martineau AT zmanda DOT com>
To: Josh Kelley <joshkel AT gmail DOT com>
Date: Fri, 07 Sep 2007 14:37:42 -0400
Josh Kelley wrote:
I checked the wiki and Google and couldn't find an answer.  How do I
restore from files on a holding disk if the dump has been split across
multiple chunks on the holding disk?

I have the following files:
alva._home.4    alva._home.4.2  alva._home.4.4
alva._home.4.1  alva._home.4.3  alva._home.4.5

I can restore from alva._home.4 using amrestore as normal:

amrestore -p alva._home.4 | tar xvf -
It should works, try 'amrestore alva._home.4' and feed the resulting file to tar.
But that's obviously only part of the backup.

If I try to concatenate all of the files together, as the wiki
suggests when using amrestore to restore from a tape:

for i in `ls -1 alva._home.4*`; do dd if=$i >> wholedump.0; done
You must remove the first 32k bytes of each files

for i in `ls -1 alva._home.4*`; do dd if=$i bs=32k skip=1 >> wholedump.0; done

and run tar directly on wholedump.0, may need to be uncompressed.
then run amrestore on wholedump.0, amrestore successfully processes
the data corresponding to alva._home.4 then gives the following
errors:

tar: Skipping to next header
gzip: stdin: invalid compressed data--crc error
gzip: stdin: invalid compressed data--length error

What's the correct procedure for restoring from holding disk files in this case?

Thank you.

Josh Kelley


<Prev in Thread] Current Thread [Next in Thread>