By Owen Allen-Oracle on Sep 24, 2015
Ops Center has a backup and recovery feature for the Enterprise Controller - you can save the current EC state as a backup file, and restore the EC to that state using the file. It's an important feature, but I've seen a few folks asking for guidelines about how to use it. Every site is different, but here are some broad guidelines that we recommend:
- Perform a backup at least once a week, and keep at least two backup files.
- Once you've made a backup file, store it offsite or on a NAS share - don't keep it locally on the EC.
- You can use a cron job to automate regular backups. Here's a sample cron job to perform a backup:
0 0 * * 0 /opt/SUNWxvmoc/bin/ecadm backup -o /bigdisk/oc_backups -l /bigdisk/oc_backups
- Remember that some files and directories are not part of the EC backup
for size reasons: isos, flars, firmware images, and Solaris 8-10 and
Firmware images are automatically re-downloaded in Connected Mode. Isos and flars can be re-imported. You can also do separate backups of your Ops Center libraries via Netbackup or the like.
Some folks have also asked if there's a good way to test the backup and recovery procedure, to make sure it's working. Well, there's really only one way to do it - do an EC backup, and also backup or clone the file systems. Then, uninstall and reinstall the EC, restore from the backup, and make sure that everything looks right.
Take a look at the Backup and Recovery chapter for more information about how to perform a backup.