Schedule incidental backups via at
This little at job performs a full backup and sends the output of the log file to me via email. I use this for incidental one-time backups of databases for releases and migrations. I like to schedule these early enough that I can get the results of the logfile and create another backup if this one fails for any reason. Notice the -m and the cat; they make sure I get email as soon as the task is complete.
-bash-3.00$ at -m 21:00 tomorrow
at> /export/home/users/oracle/com.r.cron.betterlogic.full
at> cat `ls -rt /export/home/users/oracle/rman-logs/*full*|tail -1`
at> <EOT>
commands will be executed using /bin/bash
job 1198288801.a at Fri Dec 21 21:00:00 2007









