backup rabbitmq

224 views
Skip to first unread message

Tim Dunphy

unread,
Jan 21, 2016, 1:29:30 PM1/21/16
to rabbitmq-users
Guys, 
 
 How can I back up rabbitmq from the command line so that we can put the backup command into a cron job?

Thanks
Tim

Michael Klishin

unread,
Jan 21, 2016, 1:49:18 PM1/21/16
to rabbitm...@googlegroups.com, Tim Dunphy
On 21 January 2016 at 21:29:33, Tim Dunphy (bluet...@gmail.com) wrote:
> How can I back up rabbitmq from the command line so that we can
> put the backup command into a cron job?

There is no separate backup command. You can copy the database directory.
Keep in mind that some messages that are persistent and routed to durable
queues can be in flight so this wouldn't give you an exact point-in-time snapshot
but as an ongoing backup strategy it can be good enough for some.

Or you could keep a hot standby node/cluster where everything is replicated
(using exchange federation and imported/exported topology from the live node/cluster).
Because replication doesn't account for messages consumed in the origin, it is a good idea
to set a TTL for messages globally in the standby cluster, say to N hours.

When you have to switch, remove the policy that defined TTL and it won't be applied to newly
published  messages.
--
MK

Staff Software Engineer, Pivotal/RabbitMQ


Message has been deleted

Michael Klishin

unread,
Apr 1, 2016, 4:03:39 AM4/1/16
to rabbitm...@googlegroups.com, bluet...@gmail.com
Lalith, 

We would greatly appreciate if new threads are started instead of discussing unrelated topics in the existing ones.

See 'rabbitmqctl clear_policy' at https://www.rabbitmq.com/man/rabbitmqctl.1.man.html

On 1 abr 2016, at 9:20, Lalith kumar K <lalithk...@gmail.com> wrote:

Hi,

how to remove the set_policy from TTL ?

Thanks and Regards
Lalith

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages