Skip to content
Snippets Groups Projects
Verified Commit de671fb9 authored by David Mehren's avatar David Mehren
Browse files

Support for borgmatic's mysql backup

parent d084730f
No related branches found
No related tags found
No related merge requests found
......@@ -42,3 +42,4 @@ borgbackup_use_msmtp: true
borgbackup_email_from: "notifications@oh14.de"
borgbackup_interval: "hourly"
borgbackup_chunker_params: "19,23,21,4095"
borgbackup_mariadb_enable: false
location:
# List of source directories to backup. Globs are expanded.
source_directories:
{% for item in borgbackup_source_dirs %}
- {{ item }}
{% endfor %}
source_directories: {{ borgbackup_source_dirs | to_nice_yaml }}
# Paths to local or remote repositories.
repositories:
......@@ -33,3 +30,12 @@ consistency:
- repository
- archives
check_last: 3
{% if borgbackup_mariadb_enable %}
hooks:
mysql_databases:
- name: all
username: {{ borgbackup_mariadb_user }}
password: {{ borgbackup_mariadb_password }}
options: "--single-transaction --quick"
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment