Hi!
Yes i know, but as there's not enough space on my local RAID to store more than one backup simultanously, i was thinking of a possibility to store more than one backup file on the tape.
This being my backup to tape script
Code:
#!/bin/bash
TAPE=/dev/st0
echo "Start Time: `date +'%Y-%m-%d %T'`"
mt -f $TAPE defcompression 1
mt -f $TAPE rewind
cd /usr/local/backup/daily/dump/
tar -b 256 -cvf $TAPE ./vzdump*.gz
echo "Start writing Tape:`date +'%Y-%m-%d %T'`."
echo "Stop writing Tape:`date +'%Y-%m-%d %T'`"
mt -f $TAPE eject
echo "Backup finished: `date +'%Y-%m-%d %T'`"
What could i do to leave 2 or 3 backups on the tape before deleting the oldest one?
Thanks
Sascha