#!/bin/csh -f # # daily_backup.sh - written by Kevin P. Inscoe (kevin.inscoe@cbis.com) # # # define global environment variables source /opt/bin/ondemand_globals.sh env # announce ourselves /bin/echo "Daily system backup beginning at" `/bin/date` "..." /bin/uname -a # Make sure the tape is at BOT #/bin/mt rew /bin/mt status # perform makesysb's /usr/bin/mksysb '-v' '-i' /dev/rmt0 # Eject the tape out of the drive /bin/mt offline # Now cleanup old archives... /opt/bin/clean_archive.sh # Say goodnight Gracie... /bin/echo "Daily system backup done at" `/bin/date` "..." /bin/uname -a exit 0