Advertisement
trishoar

RHN README.txt

Mar 4th, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. Hot Backup for embedded RHN database
  2. ************************************
  3. Matthew Booth <mbooth@redhat.com> 22/09/2006
  4.  
  5. Hot backup comprises 4 files:
  6.  
  7. * prep.sh
  8. A script to prepare the embedded RHN database for hot backups.
  9.  
  10. * hot-backup.sh
  11. A backup script which will perform both full and incremental backups.
  12.  
  13. * RESTORE.txt
  14. A procedure for restoring the database from the backups
  15.  
  16. * README.txt
  17. This file.
  18.  
  19. Using hot backups
  20. ***********************
  21. The hot backup script requires that:
  22.  
  23. * The database is in archive log mode
  24. * The rman retention policy has been defined
  25.  
  26. The prep script performs both of these tasks. Note that it only ever needs
  27. to be run once, and that the database must be stopped before running it. It
  28. is, however, safe to re-run this script.
  29.  
  30. Backups are performed by running hot-backup.sh. It takes 1 argument:
  31.  
  32. hot-backup.sh (full|incremental)
  33.  
  34. full will perform a full backup of the entire database. incremental will
  35. store only database blocks which have changed since the last full backup.
  36. The script will also automatically clean up if any of its data files where
  37. deleted on disk, delete old data and verify that the backup succeeded.
  38.  
  39. NB: RMAN is configured to keep 2 full backups: the current and the one
  40. immediately before it. You should never delete backup files manually as
  41. they are tracked by oracle.
  42.  
  43. hot-backup.sh writes its logs to /var/log/rhn/db_backup.log. It will only
  44. output anything on an error, and this will be sent to stderr.
  45.  
  46. hot-backup.sh should be configured to run automatically from cron. The
  47. following is an example crontab:
  48.  
  49. # Full backup on Sunday
  50. 0 19 * * 0 root /rhnsat/backup/scripts/hot-backup.sh full
  51.  
  52. # Incremental backups on other days
  53. 0 19 * * 1-6 root /rhnsat/backup/scripts/hot-backup.sh incremental
  54.  
  55. NB. If your backups are failing, this will be reported by hot-backup.sh.
  56. You must ensure that MAILTO for your crontab is set to a real, monitored
  57. address, otherwise you will not receive any indication of failing backups.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement