Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RabbitMQ : how to create and restore backup

I'm new to RabbitMQ and i need some help. how to do backup and restore to RabbitMQ, and what is the important data i need to save.

thanks!

like image 466
lior Avatar asked Oct 28 '13 12:10

lior


2 Answers

If you have the management plugin installed you can back-up and restore the broker on the Overview page. At the bottom you will see Import/Export Definitions and you can use this to download a JSON representation of your broker.

This will restore Exchanges, Queues, Virtual Hosts, Policies and Users.

Hope that helps.

like image 63
Belzuk Avatar answered Oct 23 '22 04:10

Belzuk


For those looking for the HTTP API endpoint, it is:

http://rabbit:15672/api/definitions

Another way to automate this is to use the command line tool rabbitmqadmin (http://rabbit:15672/cli/) add pass the export subcommand, e.g.

rabbitmqadmin export rabbit-backup.config
like image 29
morloch Avatar answered Oct 23 '22 04:10

morloch