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 13.5. Performing store backup by using
BDBBackup class directly
In the example above BDBBackup utility is called from qpid-bdbstore-0.27.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 13.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.
Apache Qpid, Messaging built on AMQP; Copyright © 2013 The Apache Software Foundation; Licensed under the Apache License, Version 2.0; Apache Qpid, Qpid, Qpid Proton, Proton, Apache, the Apache feather logo, and the Apache Qpid project logo are trademarks of The Apache Software Foundation; All other marks mentioned may be trademarks or registered trademarks of their respective owners