tape drive error
Charles Farinella
cfarinella at appropriatesolutions.com
Fri Feb 13 15:44:58 EST 2004
On Fri, 2004-02-13 at 15:36, Steven W. Orr wrote:
> Pray tell, what command is being executed when you run your backup?
#!/bin/bash
# Create backups
PATH=/bin:/usr/bin:/usr/local/bin
backupdirs="/var/backups/"
mt -f /dev/st0 rewind
for path in $backupdirs
do
echo "System backup on $path"
tar cf /dev/nst0 $path 1>/dev/null
sleep 2
done
echo "System backups complete, status: $?"
echo "Now verifying system backups"
mt -f /dev/st0 rewind
for path in $backupdirs
do
echo "Verifying $path...."
tar tf /dev/nst0 1>/dev/null && \
echo "$path: verified" || \
echo "$path: errors in verify"
if [ $? -eq 0 ]
then echo "$path: verified"
else echo "$path: error(s) in verify" 1>&2
fi
mt -f /dev/st0 fsf 1
done
mt -f /dev/st0 rewind
echo "Backup Complete."
--
------------------------------------------------------------------------
Charles Farinella
Appropriate Solutions, Inc. (www.AppropriateSolutions.com)
cfarinella at AppropriateSolutions.com
603.924.6079
More information about the gnhlug-discuss
mailing list