简体   繁体   English

RabbitMQ:如何创建和恢复备份

[英]RabbitMQ : how to create and restore backup

I'm new to RabbitMQ and i need some help. 我是RabbitMQ的新手,我需要一些帮助。 how to do backup and restore to RabbitMQ, and what is the important data i need to save. 如何备份和恢复到RabbitMQ,以及需要保存的重要数据是什么。

thanks! 谢谢!

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. 在底部,您将看到导入/导出定义 ,您可以使用它来下载代理的JSON表示。

This will restore Exchanges, Queues, Virtual Hosts, Policies and Users. 这将还原Exchange,队列,虚拟主机,策略和用户。

Hope that helps. 希望有所帮助。

For those looking for the HTTP API endpoint, it is: 对于那些寻找HTTP API端点的人来说,它是:

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, eg 另一种自动化方法是使用命令行工具rabbitmqadminhttp:// rabbit:15672 / cli / )add传递export子命令,例如

rabbitmqadmin export rabbit-backup.config

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM