The Cluster Manager CLI provides scripts that you can use to backup and restore your configuration: cdbDump and cdbRestore. These scripts are installed in the /var/cluster/cmgr-scripts directory. You can modify these scripts to suit your needs.
The cdbDump script, as provided, creates compressed tar files of the /var/cluster/cdb/cdb.db# directory and the /var/cluster/cdb.db file.
The cdbRestore script, as provided, restores the compressed tar files of the /var/cluster/cdb/cdb.db# directory and the /var/cluster/cdb.db file.
When you use the cdbDump and cdbRestore scripts, you should follow the following procedures:
Run the cdbDump and cdbRestore scripts only when no administrative commands are running. This could result in an inconsistent backup.
You must backup the configuration of each node in the cluster separately. The configuration information is different for each node, and all node-specific information is stored locally only.
Run the backup procedure whenever you change your configuration.
The backups of all nodes in the pool taken at the same time should be restored together.
Cluster and Linux FailSafe process should not be running when you restore your configuration.
Note: In addition to the above restrictions, you should not perform a cdbDump while information is changing in the CDB. Check SYSLOG for information to help determine when CDB activity is occurring. As a rule of thumb, you should be able to perform a cdbDump if at least 15 minutes have passed since the last node joined the cluster or the last administration command was run.