Your Sun Management Center database sometimes needs to be backed up to prevent loss of data. For example, you should back up your database before you upgrade the hardware or the operating environment. To back up your database, use one of the following approaches:
The following script runs in interactive mode. This script enables you to specify the location where the database files should be saved:
# /opt/SUNWsymon/sbin/es-backup |
To run es-backup in silent mode and use default answers to the script's questions, use the following command:
# /opt/SUNWsymon/sbin/es-backup -y |
The database files are saved in the directory /var/opt/SUNWsymon/backup.
If you need to periodically run the es-backup script, you can set a cron program for the script to be run on a routine basis. In this case, use the -y option for the es-backup script so that no interaction is needed.
Both scripts shut down the Sun Management Center processes before starting the restore or backup. These scripts also restart the processes once the recovery or backup has been completed.
If your Sun Management Center database has been inadvertently corrupted due to a system failure, run the following interactive script as superuser to restore your database:
# /opt/SUNWsymon/sbin/es-restore |
For example, you might want to follow this process if the system failure is due to a file system problem.