On Wed, Oct 20, 2004 at 06:40:43PM +0200, Kuba Molek wrote: > Hellow, > > I've got a tape with amanda backup with "GNUTAR" option set. > I heve restored one disk file with command: > # mt -f /dev/nst0 rewind > # amrestore -h /dev/nst0 > > so I have one file: amanda.__foo_backup.20040904.0 > and finaly I don't know how to restore a file from this dump. > When I try to use: > # gtar -xf amanda.__foo_backup.20040904.0 > I get > # This does not look like a tar archive > # Skipping to next header > # Error exit delayed from previous errors > > When I try to use: > # restore -rcf ./amanda.__foo_backup.20040904.0 > I get > # Verify tape and initialise maps > # Input is from file/pipe > # Input block size is 32 > # restore: Tape is not a dump tape > > Finnaly file command returns: > # AMANDA dump file, DATE 20040904 amanda //foo/backup > > Have You got any idea? >
Yes, you either have not read or not understood the man page for amrestore. An amanda tape is a sequence of "tape files", all but the first and last containing the resulting dump of a single disklist entry (DLE). Each and every tape file begins with a 32KB header (note the "h" in header) identifying that tape file. The "-h" option of amrestore outputs only the headers, not the dumps. -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road (609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)