RabbitMQ : how to create and restore backup

*爱你&永不变心* 提交于 2019-12-03 11:25:13

问题


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!


回答1:


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.




回答2:


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


来源:https://stackoverflow.com/questions/19635165/rabbitmq-how-to-create-and-restore-backup

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!