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

This entry was posted on Thursday, December 20th, 2007 at 10:18 pm and is filed under Automation, Oracle, Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Be the first to leave a comment.

Leave a Reply