backup MySQL db on Zamok
parent
816a63ad0b
commit
4f4e0e4b22
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
loc_borg:
|
||||
to_exclude:
|
||||
- /var/mail
|
||||
hooks:
|
||||
- type: mysql_databases
|
||||
params:
|
||||
- "- name: all"
|
||||
- " password: {{ vault_mysql_zamok_password }}"
|
|
@ -77,12 +77,13 @@ consistency:
|
|||
{% endfor %}
|
||||
|
||||
{% if borg.hooks | default([]) %}
|
||||
hooks:
|
||||
hooks:
|
||||
{% for hook in borg.hooks %}
|
||||
{{ hook.type }}:
|
||||
{% for value in hook.values %}
|
||||
- {{ value }}
|
||||
{% endfor %}
|
||||
{% for param in hook.params %}
|
||||
{{ param }}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
umask: 0077
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue