Export definitions (backup)

Export all vhosts, exchanges and policies via 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 queues with message count and consumer count

  • rabbitmqctl list_exchanges name type durable

    Show all exchanges and their types

  • rabbitmqctl list_bindings

    Show all queue-exchange bindings

  • rabbitmqctl list_connections name peer_host port user

    Show all active AMQP connections

  • rabbitmqctl purge_queue <queue>

    Delete all messages from a queue without removing it

all 15 rabbitmq commands