Export definitions as a backup

Save vhosts, exchanges, policies and other definitions to a file via the management API

curl -s -u guest:guest http://localhost:15672/api/definitions | jq '.' > rabbitmq-defs.json

tool
rabbitmq15 commands
tags
rabbitmq

More rabbitmq commands

  • rabbitmqctl list_queues name messages consumers durable

    Show each queue with its message count, consumer count and durable flag

  • rabbitmqctl list_exchanges name type durable

    Show all exchanges and their types

  • rabbitmqctl list_bindings

    Show all bindings between exchanges and queues in the default vhost

  • rabbitmqctl list_connections name peer_host port user

    Show open client connections with client host, server port and user

  • rabbitmqctl purge_queue <queue>

    Delete all messages from a queue but keep the queue itself

all 15 rabbitmq commands