tape problem and can't save
HP sure store 6000 ( 4 G dds) failure
dev/nst0: Input/output error
tar: /dev/nst0: Wrote only 0 of 10240 bytes
tar: Error is not recoverable: exiting now
/home/auser/newtape: line 17: syntax error: unexpected end of file
here is my script from searching.
#!
mt -t /dev/nst0 comp 0 # turn off hardware compression
mt -t /dev/nst0 rewind # rewind tape
mt -t /dev/nst0 fsf 1 # skip 1st file (used by KDat)
#tar cfPW /dev/nst0 /home /home2 /baseline # tar the data onto tape
tar cfPW /dev/nst0 /var/www/html/redhat7.3/8051
mt -t /dev/st0 offline # rewind and eject the tape
set fsize=`ls -l /var/log/backup_error |awk '{print $5}'`
if ($fsize > 4 ) then
mail waded</var/log/backup_error
else mail waded</var/log/backup_success
endif
rm -f /var/log/backup_error
in cronab
32 22 * * * /home/user/newtape 1 > /dev/null 2 > /var/log/backup_error
can you help to spot my mistake?
Report this post to a
|