feat: Allow to backup mariadb
This commit is contained in:
parent
914fbcf364
commit
ab10def783
@ -34,4 +34,5 @@ borgmatic_passphrase: ""
|
|||||||
|
|
||||||
borgmatic_actions: {}
|
borgmatic_actions: {}
|
||||||
|
|
||||||
|
borgmatic_mariadb_enabled: false
|
||||||
borgmatic_restore_first: false
|
borgmatic_restore_first: false
|
||||||
|
@ -14,10 +14,12 @@ exclude_patterns:
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if borgmatic_source_directories | length > 0%}
|
||||||
source_directories:
|
source_directories:
|
||||||
{% for directory in borgmatic_source_directories %}
|
{% for directory in borgmatic_source_directories %}
|
||||||
- {{ directory }}
|
- {{ directory }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
archive_name_format: {{ borgmatic_name }}
|
archive_name_format: {{ borgmatic_name }}
|
||||||
compression: {{ borgmatic_compression }}
|
compression: {{ borgmatic_compression }}
|
||||||
@ -32,9 +34,9 @@ checks:
|
|||||||
healthchecks:
|
healthchecks:
|
||||||
ping_url: {{ borgmatic_healthchecks }}
|
ping_url: {{ borgmatic_healthchecks }}
|
||||||
send_logs: false
|
send_logs: false
|
||||||
states:
|
# states:
|
||||||
- finish
|
# - finish
|
||||||
- fail
|
# - fail
|
||||||
|
|
||||||
{% if borgmatic_retention | length > 0 %}
|
{% if borgmatic_retention | length > 0 %}
|
||||||
{% for param, value in borgmatic_retention.items() %}
|
{% for param, value in borgmatic_retention.items() %}
|
||||||
@ -50,3 +52,10 @@ keep_{{ param }}: {{ value }}
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if borgmatic_mariadb_enabled %}
|
||||||
|
mariadb_databases:
|
||||||
|
- name: all
|
||||||
|
format: sql
|
||||||
|
add_drop_database: true
|
||||||
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user