You must store the backed up data on a different server. If you use -i or -A options to back up the data, you must restore the configuration data along with alerts. Otherwise, if you restore only alerts data, all the alerts show as remote alerts because the alerts configuration data is not restored.
Prerequisites:
Ensure that the time and timezone is same on both the source machine from where the backup is taken and the destination machine where the restoration of data will happen.
Ensure that the IP address of both the source and destination machines are the same.
To backup and restore:
Open a console, and navigate to the /opt/novell/sentinel/bin directory as the novelluser.
NOTE:By default, the novell user does not have a password.
Enter cgbackup_util.sh, along with the necessary parameters for the data that you want to back up or restore.
For more information about different parameters, see Table 12-1. The following table lists examples of how to specify the parameters:
Syntax |
Action |
---|---|
cgbackup_util.sh -m backup -c -e -i -l -r -w -s -u admin -x <mypassword.txt> -f /var/opt/novell/sentinel/data/<my_full_backup>.tar.gz |
Shuts down the Change Guardian server and performs a full system backup. |
cgbackup_util.sh -m backup -c -e -i -l -w -u admin -x <mypassword.txt> -f /var/opt/novell/sentinel/data/<my_weekly_backup>.tar.gz |
Performs an online backup without shutting down the server. This backup includes everything except online event data and dynamic runtime data. |
cgbackup_util.sh -m backup -b -c -e -d7 -u admin -x <mypassword.txt> -f /var/opt/novell/sentinel/data/<my_weekly_backup>.tar.gz |
Performs an online backup with event data from the last week. This backup includes configuration data and the event data for the last seven days. Event data older than seven days is not backed up because that data can be extracted selectively, if necessary, from an older backup. |
cgbackup_util.sh -m backup -c -f /var/opt/novell/sentinel/data/<my_full_backup>.tar.gz |
Performs a local backup of the configuration data. This is a minimal backup of the system without any event data. |
cgbackup_util.sh -m backup -e -f /var/opt/novell/sentinel/data/events_backup.tar.gz |
Performs a local backup of the event data. This is a minimal backup of the primary storage event data. |
cgbackup_util.sh -m backup -e -d5 -f /var/opt/novell/sentinel/data/events_5days_backup.tar.gz |
Performs a local backup of the event data from the last five days. This is a minimal backup of the primary storage event data from the last five days. |
cgbackup_util.sh -m info -f /var/opt/novell/sentinel/data/<my_full_backup>.tar.gz |
Displays the backup information for the specified backup file. |
cgbackup_util.sh -m simple_event_backup -e -z /opt/archives/archive_dir -f /opt/archives/archive_backup.tar.gz |
Performs a backup of event data on the computer where the secondary storage directory is located. If the /opt/archives/archive_dir is not located in the server, you might need to copy the cgbackup_util.sh script to the computer where the secondary storage is located and then run the simple_event_backup command from that computer.Alternatively, you can also use any third-party backup tool to back up the event directories on secondary storage. |
cgbackup_util.sh -m restore -f /var/opt/novell/sentinel/data/<my_full_backup>.tar.gz |
Restores the data from the specified filename. NOTE:To successfully restore the data from backup, ensure that the backup file ownership is set to user novell and group novell. |
cgbackup_util.sh -m simple_event_restore -z /opt/archives/archivedir -f /opt/archives/archive_backup.tar.gz |
Restores the secondary storage data. |
(Conditional) If you have restored any data, restart the server because the script might make several modifications to the database.
Use the Data Restoration feature to restore the extracted partitions. For more information, see Restoring Data.