Update to 2021-05-26 11:00

master
Daniel Berteaud 4 years ago
parent 15fa39f905
commit f321d60535
  1. 5
      roles/rabbitmq_server/templates/post-backup.j2
  2. 4
      roles/rabbitmq_server/templates/pre-backup.j2

@ -1,3 +1,8 @@
#!/bin/bash -e #!/bin/bash -e
{% if rabbitmq_conf == 'rabbitmq.conf' %}
rm -f /home/lbkp/rabbitmq/definitions.json rm -f /home/lbkp/rabbitmq/definitions.json
{% else %}
# RabbitMQ version too old to support export_definitions
{% endif %}

@ -1,5 +1,9 @@
#!/bin/bash -e #!/bin/bash -e
{% if rabbitmq_conf == 'rabbitmq.conf' %}
mkdir -p /home/lbkp/rabbitmq/ mkdir -p /home/lbkp/rabbitmq/
/usr/sbin/rabbitmqctl export_definitions --format json definitions.json /usr/sbin/rabbitmqctl export_definitions --format json definitions.json
mv /var/lib/rabbitmq/definitions.json /home/lbkp/rabbitmq/ mv /var/lib/rabbitmq/definitions.json /home/lbkp/rabbitmq/
{% else %}
# RabbitMQ version too old to support export_definitions
{% endif %}

Loading…
Cancel
Save