[rabbitmq-discuss] How does Messages will be persisted in RabbitMQ?

Michael Klishin michael at rabbitmq.com
Fri Aug 30 12:49:30 BST 2013

Rajasekhar P:

> So, you mean we shouldn't use any database where RabbitMQ does for us ,
>     1> with internal database and 
>     2> even it doesn't use even any file system. 
> In this case how can we restore the database in case of server crash or some other issue.

RabbitMQ will recover durable queues/exchanges and persistent messages in those queues
on start. It will also perform database upgrades when you install a newer version.

To create a backup RabbitMQ database you need to stop the node and copy Mnesia directory,
the archive it how you see appropriate. To restore, replace Mnesia directory dir with a one
from backup.

You can try it locally by overriding RABBITMQ_MNESIA_DIR, see http://www.rabbitmq.com/relocate.html.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130830/3de223b0/attachment.pgp>

More information about the rabbitmq-discuss mailing list