instead of the "| /bin/tar -f...", try dumping the output of dd to a file:
dd if=$tape bs-32k skip=1 > /tmp/ddoutput Alternatively, rewind the tape to the beginning, and start dd'ing blocks until you get to one that you can't read. Rewind again, and 'skip=' the number of blocks you could read. > -----Original Message----- > From: Brad Tilley [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 11, 2002 1:50 PM > To: [EMAIL PROTECTED] > Subject: Restoring w/o amanda > > > Hello, > > We are doing a disaster recover check, and we would like to > test amanda > restoration without amanda being present. I have followed the > directions > in 'Unix Backup and Recovery' (O'Reilly) by W. Curtis Preston (a very > good book... well worth the money), but I can't get any further than > reading the amanda header that contains the backup info. Here's what I > do: > > [root@reg root]# dd if=/dev/st0 bs=32k skip=2 count=1 > AMANDA: FILE 20020304 reg /root lev 0 comp N program /bin/tar > To restore, position tape at start of file and run: > dd if=$tape bs=32k skip=1 | /bin/tar -f... - > > 1+0 records in > 1+0 records out > [root@reg root]# > > So, I cd to a /tmp directory and try to run the command as it appeared > in the amanda header, but I always get a tar error. > > I think I am probably overlooking something simple in tar, but I don't > know what. I've never done this before, so please don't flame me too > much if I'm doing something stupid. > > Thank you, > Brad > > >
