Thoughts on RMAN Backup Strategy Part 2
Thoughts on RMAN Backup Strategy
From cron:
00 03 * * 0 rman_db_backup.sh 0 > /tmp/rman_l0.log 2>&1
00 03 * * 1,2,3,4,5 rman_db_backup.sh 1 > /tmp/rman_l1.log 2>&1
30 * * * * rman_archive_backup.sh > /tmp/rman_arch.log 2>1
Notice from cron, DB backup starts at 3am and achivelog backup starts at 30m after the hour.
What happens when DB performs backup database plus archivelog delete input?
What happens when failed backup does not exits from shell script and continue with delete noprompt obsolete;?
Just a few thoughts:
- Use flock to prevent 2 backups for running at the same time.
- User error trapping to exit from shell script vs continuing to next step.
- Don’t delete archivelog from DB backup.
- Delete archivelog from ARC backup or schedule MW tasks.
