parent
15fa39f905
commit
f321d60535
2 changed files with 9 additions and 0 deletions
@ -1,3 +1,8 @@ |
||||
#!/bin/bash -e |
||||
|
||||
{% if rabbitmq_conf == 'rabbitmq.conf' %} |
||||
rm -f /home/lbkp/rabbitmq/definitions.json |
||||
{% else %} |
||||
# RabbitMQ version too old to support export_definitions |
||||
{% endif %} |
||||
|
||||
|
@ -1,5 +1,9 @@ |
||||
#!/bin/bash -e |
||||
|
||||
{% if rabbitmq_conf == 'rabbitmq.conf' %} |
||||
mkdir -p /home/lbkp/rabbitmq/ |
||||
/usr/sbin/rabbitmqctl export_definitions --format json definitions.json |
||||
mv /var/lib/rabbitmq/definitions.json /home/lbkp/rabbitmq/ |
||||
{% else %} |
||||
# RabbitMQ version too old to support export_definitions |
||||
{% endif %} |
||||
|
Loading…
Reference in new issue