Re: Restoring without Amanda
2005-09-07 10:52:04
Vytas Janusauskas <vytas AT dendron DOT com> wrote in message
<[email protected]>
> Hi All,
>
> I had a failure of my Amanda index drive. I am now trying to restore some
> archives. What I have done so far is the following:
>
> Ran amrestore to get a listing of tape contents
> dendron:/mnt/dump_drive/restore# mt -t /dev/nst0 rewind
> dendron:/mnt/dump_drive/restore# amrestore /dev/nst0 no.such.host
> amrestore: 0: skipping start of tape: date 20050304 label Project223
> amrestore: 1: skipping
> dendron.l8r.net._mnt_vxa2_scans_c_Seven__Pent22.20050304.0
> amrestore: 2: skipping
> dendron.l8r.net._mnt_vxa2_scans_c_Seven__Unix.20050304.0
> amrestore: 3: skipping
> dendron.l8r.net._mnt_vxa2_scans_c_Seven__Pent21.20050304.0
> amrestore: 4: skipping
> dendron.l8r.net._mnt_vxa2_scans_c_Seven__Final__Sids.20050304.0
> amrestore: could not fsf /dev/nst0: Input/output error
>
> determined that what I need is in file
> 2: dendron.l8r.net._mnt_vxa2_scans_c_Seven__Unix.20050304.0
>
> So I:
> mt -t /dev/nst0 rewind
> mt -t /dev/nst0 fsf 2
> dd if=/dev/nst0 bs=32k count=1
>
> This list the following:
>
> AMANDA: FILE 20050304 dendron.l8r.net /mnt/vxa2/scans/c/Seven_Unix lev 0
> comp .gz program /bin/tar
> To restore, position tape at start of file and run:
> dd if=<tape> bs=32k skip=1 | /bin/gzip -dc | bin/tar -f... -
>
> So I rewind the tape skip 2 files and then issue:
>
> dd if=/dev/nst0 bs=32k skip=1 | /bin/gzip -dc | /bin/gtar -f ????
>
> I tried various things as substitutes for ???? such as
> /mnt/vxa2/scans/c/Seven_Unix and
> dendron.l8r.net._mnt_vxa2_scans_c_Seven__Pent22.20050304.0
>
[snip]
Ha! I asked exactly the same thing last week. You should try the archives!
Anyway, the dash at the end of the command is significant; it means to take
the gtar input from stdin (i.e. the pipe). It'll expand the archive into the
current directory. No file names required.
I used ... gtar -xpvf -
--
Tony van der Hoff | mailto:tony AT vanderhoff DOT org
Buckinghamshire, England
|
|
|