RMQ Recover
Recovers messages from a RabbitMQ mnesia directory. It can both report number of messages in all files in a mnesia directory, but can also republish them to a new cluster. It extracts vhost, exchange, routing key, properties (including headers) and the body.
Known issues
By default RabbitMQ embeds messages smaller than 4KB into the queue index. A message that is enqueued in multiple queues are therefor reported/ republished multiple times. If you republish you can end up with duplicates.
Installation
Download: https://github.com/cloudamqp/rmqrecover/releases
From source:
git clone [email protected]:cloudamqp/rmqrecover.git
cd rmqrecover
shards build --release
Usage
Usage: rmqrecover [ arguments ]
-D DIR, --directory=DIR mnesia directory to scan
-m MODE, --mode=MODE report (default) or republish
-u NAME, --uri=URI AMQP URI to republish to
-v, --verbose Hexdump while reading
--version Show version
-h, --help Show this help
Contributing
- Fork it (https://github.com/cloudamqp/rmqrecover/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Carl Hörberg - creator and maintainer