View Single Post

   
  #2 (permalink)  
Old 01-16-2008, 09:44 AM
Glenn
 
Posts: n/a
Default Re: How to verify the integrity of a Tar Tape Archive?

> What is the best way to verify the integrity
> of a Tar Tape Archive? I there a more comprehensive
> way beyond just reading it back?


If you're using Sun tar, use the "e" option when you
scan the tar file. For some ridiculous reason, this
doesn't seem to be the default.

e Error. Exit immediately with a positive exit
status if any unexpected errors occur.

tar tvfe tarfile.tar
echo $status # C-shell
echo $? # Bourne shell

Reply With Quote