Amanda-Users

Restoring from a holding disk?

2007-09-07 14:14:09
Subject: Restoring from a holding disk?
From: "Josh Kelley" <joshkel AT gmail DOT com>
To: amanda-users AT amanda DOT org
Date: Fri, 7 Sep 2007 14:08:40 -0400
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 -

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

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>