1834930 Members
2737 Online
110071 Solutions
New Discussion

Re: fbackup parameter

 
SOLVED
Go to solution
Guy Humphreys
Valued Contributor

fbackup parameter

Hi All,

Is there a parameter I can use to stop the DLT drive ejecting the tape after a successful backup? I don't mind if it is fbackup or using some other method.

At the moment all our backups spit the tape out after the backup finishes, I would like to retain the tape in the drive on Sat nights so that the same tape can be used on Sun nights without anyone having to go in and change the tape. I've looked in the fbackup man pages and can't find anything.

Thanks for any help with this

Cheers
Guy
'If it ain't broke, don't fix it!'
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: fbackup parameter

This behavior is not governed by fbackup. Look in your backup scripts for the mt command. An mt "offl" command will generally unload the tape. I should point out that even with this problem solved, you can't use fbackup for this. Fbackup uses rewind devices so that your subsequent backup would write over the previous one.
If it ain't broke, I can fix that.
David Child_1
Honored Contributor

Re: fbackup parameter

Guy,

You stated that you "don't mind if it is fbackup or using some other method". Using 'tar' you could easily do this as you need to tell it to offline. Also, are you overwritting Saturdays data on Suday? If the tape is big enough you can specify 'no-rewind' and it will contain both Sat and Sun (e.g. tar cvf /dev/rmt/0mn).

David
Jose Mosquera
Honored Contributor

Re: fbackup parameter

Hi,

Try this:

/usr/sbin/fbackup ...
STATUS=$?

case $STATUS in
0) echo "Backup Ok"
/usr/bin/mt -t /dev/rmt/ rew
/usr/bin/mt -t /dev/rmt/ offl
;;
4) echo "Backup finished with Warnings"
;;
*) echo "Backup Failed"
;;
esac

Rgds.
Darren Prior
Honored Contributor

Re: fbackup parameter

Hi Guy,

Fbackup only allows one session per tape, so there would be no benefit in leaving the tape in the drive unless you don't mind Saturday's backup getting overwritten by Sunday's backup.

Also - I thought you still had to manually operate the handle to eject a DLT?

regards,

Darren.
Calm down. It's only ones and zeros...
Jose Mosquera
Honored Contributor

Re: fbackup parameter

Hi again,

This script do not spit the tape at Satudays nights:

#!/sbin/sh
/usr/sbin/fbackup your_fbackup_options...
STATUS=$?
case $STATUS in
0) echo "Backup Ok"
TONIGHT=`date +%a`
if [ "$TONIGHT" != "Sat" ]
then
/usr/bin/mt -t /dev/rmt/ rew
/usr/bin/mt -t /dev/rmt/ offl
fi
;;
4) echo "Backup finished with Warnings"
;;
*) echo "Backup Failed"
;;
esac

Rgds.