RabbitMQ : how to create and restore backup

后端 未结 2 1885
挽巷
挽巷 2021-02-05 09:19

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!

相关标签:
2条回答
  • 2021-02-05 09:29

    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.

    0 讨论(0)
  • 2021-02-05 09:29

    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
    
    0 讨论(0)
提交回复
热议问题