On Tue, 26 Aug 2003, Peter Kiem wrote:

> Hi,
> 
> I have a script in a customer site which performs a backup to tape and
> then tries to verify the backup.  This is my script:
> 
> #!/bin/bash
> echo "rewinding tape"
> mt -f /dev/st0 rewind
> echo "retensioning tape"
> mt -f /dev/st0 retension
> echo "starting backup"
> tar -cpf /dev/st0 --verify --files-from /root/scripts/backup.inc
> --exclude-from /root/scripts/backup.exc
> echo "rewinding tape & unloading tape"
> mt -f /dev/st0 rewoffl
> echo "finished backup"
> 
> 
> But at the end of the backup I see:
> tar: /dev/st0: Cannot read: Input/output error
> tar: Too many errors, quitting
> tar: Error is not recoverable: exiting now
> 
> 
> They have cleaned the drive, changed tapes but I always get the above
> error messages.
> 
> Am I verifying the backup correctly or am I doing something wrong?

Are you running the script as root?

-- 
Gerry

"The lyfe so short, the craft so long to learne"  Chaucer


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to