Amanda-Users

Re: amrecover: Unexpected end of file

2005-05-11 15:53:26
Subject: Re: amrecover: Unexpected end of file
From: Kee Gohil <kee AT ksl.co DOT uk>
To: amanda-users AT amanda DOT org
Date: Wed, 11 May 2005 19:58:56 +0100

I had the same problem and I believed that the file must have been prematurely truncated. In the end it worked fine with amrestore to grab the amanda file from tape

amrestore -C /dev/nst0 fs0 var

and then manually restoring the contents of that file (mine was a dump file).


gunzip -c /dumpfile/fs0._home.20050420.0 | restore -r -f -



Hull, Dave wrote:
I've had similar problems in the past for unknown reasons. In several instances 
running amverify <config> on the tape in question has been enough to correct 
the problem and allow me to restore.

Good luck.