> I need to build a script that extracts file automatically from
>amanda backup tapes. ...
By "file" do you mean a backup image? Or do you mean you want to pass
an Amanda written image into the appropriate restore program and recover
actual files and directories?
>... My
>only problem at the moment is that I don't know how to tell when I
>reached the last file on the tape. Is it possible to tell when I
>extracted the last file from the tape?
I've attached an **experimental** script I wrote a while back to prove
tapes with images split across them could be restored with just normal
shell tools. However, it should also work for the current tape format.
It might do what you want as is.
To answer your specific question, it quits if it gets an error reading
the header block, or if the header block is zero length, or if it gets
an Amanda "TAPEEND" label.
> Paolo
John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]
amdechunk.sh