[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

trying to verify contents of my tar archive



I've been using Karsten Self's sample backup script available in the Linux 
Backup mini-FAQ at:

http://kmself.home.netcom.com/Linux/FAQs/backups.html

This script basically uses tar to archive a list of directories to tape and 
then verifies the backup as well.  When I run the script, the output is the 
following:

z8:~/backup# ./full.script
tar: Removing leading `/' from member names
[snip 8 more lines of this]
/etc: verified
/root: verified
/boot: verified
/home: verified
/usr/local: verified
/var/backups: verified
/var/lib: verified
/var/log: verified
/var/www: verified

Which leads me to believe all the data has been backed up and is good to go.  
However, if I do "tar tvf /dev/st0" to list the contents of the tape, all I 
get is the following:

z8:~/backup# tar -tvf /dev/st0
drwxr-xr-x root/root         0 2001-10-18 19:59:23 var/www/
-rw-r--r-- root/root      4100 2001-03-22 17:39:29 var/www/index.html
-rw-r--r-- root/root      1195 2001-10-18 19:59:23 var/www/search.html

I suspect this is more user error than anything, but I'm not sure what I'm 
doing wrong.  I've tried rewinding the tape as well as doing a "mt -f 
/dev/st0 asf" 1 to position the tape at the beginning, but I still get the 
same output when I tar tvf.  Any help is appreciated.

--kurt



Reply to: