In order to protect the entire cluster from some cataclysms which might destroy all cluster nodes, backups of the Master store should be taken on a regular basis.
Qpid Broker distribution includes the "hot" backup utility backup.sh which can be found at broker bin folder. This utility can perform the backup when broker is running.
backup.sh script invokes
org.apache.qpid.server.store.berkeleydb.BDBBackup to do the job.
You can also run this class from command line like in an example below:
Example 12.5. Performing store backup by using
BDBBackup class directly
In the example above BDBBackup utility is called from qpid-bdbstore-0.18.jar to backup the store at path/to/store/folder and copy store logs into path/to/backup/folder.
Linux and Unix users can take advantage of backup.sh bash script by running this script in a similar way.
Example 12.6. Performing store backup by using
backup.sh bash script
Do not forget to ensure that the Master store is being backed up, in the event the Node elected Master changes during the lifecycle of the cluster.