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
More rabbitmq commands
-
rabbitmqctl list_queues name messages consumers durableShow each queue with its message count, consumer count and durable flag
-
rabbitmqctl list_exchanges name type durableShow all exchanges and their types
-
rabbitmqctl list_bindingsShow all bindings between exchanges and queues in the default vhost
-
rabbitmqctl list_connections name peer_host port userShow 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