backup MySQL db on Zamok

certbot_on_virtu
_pollion 2021-01-01 23:15:30 +01:00
parent 816a63ad0b
commit 4f4e0e4b22
2 changed files with 16 additions and 6 deletions

View File

@ -0,0 +1,9 @@
---
loc_borg:
to_exclude:
- /var/mail
hooks:
- type: mysql_databases
params:
- "- name: all"
- " password: {{ vault_mysql_zamok_password }}"

View File

@ -80,9 +80,10 @@ consistency:
hooks:
{% for hook in borg.hooks %}
{{ hook.type }}:
{% for value in hook.values %}
- {{ value }}
{% for param in hook.params %}
{{ param }}
{% endfor %}
{% endfor %}
umask: 0077
{% endif %}