Listing 1: spooldumps.sh
#
# spooldumps.sh:
# Schedule overnight job to perform nightly tape backups
# (This is so the dump processes cannot get into possible
# locking conflicts with active overnight jobs)
#
#
# Check if dumps job has already been spooled (allows this script
# to be scheduled for multiple runs via cron for redundancy):
#
if isonite.sh zdumps
then
exit 0
fi
#
# Change to the /u3/Backup directory, where utility scripts reside,
# and spool the dump.sh master script:
#
cd /u3/Backup
/usr/local/spoolonite.sh zdumps 7 <<END
dump.sh
END
|