You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2010/12/31 03:09:13 UTC

svn commit: r1054040 - /activemq/activemq-apollo/trunk/apollo-website/src/documentation/user-manual.md

Author: chirino
Date: Fri Dec 31 02:09:13 2010
New Revision: 1054040

URL: http://svn.apache.org/viewvc?rev=1054040&view=rev
Log:
Added doco on the export/import feature.

Modified:
    activemq/activemq-apollo/trunk/apollo-website/src/documentation/user-manual.md

Modified: activemq/activemq-apollo/trunk/apollo-website/src/documentation/user-manual.md
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-website/src/documentation/user-manual.md?rev=1054040&r1=1054039&r2=1054040&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-website/src/documentation/user-manual.md (original)
+++ activemq/activemq-apollo/trunk/apollo-website/src/documentation/user-manual.md Fri Dec 31 02:09:13 2010
@@ -674,6 +674,42 @@ The web interface will display the statu
 attached connections.  It will also allow you to drill into each configured
 virtual host and view the destinations and queues being used. 
 
+### Exporting/Importing Stores
+
+Exporting compresses all the data in a virtual host's message store in a zip
+archive. Importing reverses the export process and restore the exported data
+back to a virtual host's message store. Exporting/Importing is typically used
+to:
+
+* backup a message store
+* migrate between different message store implementations
+
+The stores which support exporting and importing are:
+
+* [BDB Store](#BDB_Store) 
+* [JDBM2 Store](#JDBM2_Store)
+
+The broker must be stopped before using the import or export commands. Be
+careful when importing an archive, since it will first purge the message
+store of any data! 
+
+Use the `apollo-broker store-export` command to export the data. For example:
+
+    /var/lib/mybroker/bin/apollo-broker store-export myarchive.zip
+
+The above command will load the `mybroker`'s configuration and export the
+first virtual host's messages store to the `myarchive.zip`. You can use the
+`--virtual-host` command line option to be more specific of which virtual
+host you wish to export.
+
+Use the `apollo-broker store-import` command to import the data.  For example:
+
+    /var/lib/mybroker/bin/apollo-broker store-import myarchive.zip
+
+Just like in the case of the `store-export` command, it will load the
+`mybroker`'s configuration and import the archive into the first virtual
+host's message store.
+
 ## Using the STOMP Protocol
 
 Clients can connect to ${project_name} using the