From 1204730924436ef9e1c7c49c9557837f9a5ed0e8 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Wed, 8 Feb 2023 00:40:09 -0800 Subject: fork https://github.com/mattsta/mailweb --- ansible/roles/backup/templates/borgmatic.yml.j2 | 36 +++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 ansible/roles/backup/templates/borgmatic.yml.j2 (limited to 'ansible/roles/backup/templates') diff --git a/ansible/roles/backup/templates/borgmatic.yml.j2 b/ansible/roles/backup/templates/borgmatic.yml.j2 new file mode 100644 index 0000000..864c8a6 --- /dev/null +++ b/ansible/roles/backup/templates/borgmatic.yml.j2 @@ -0,0 +1,36 @@ +location: + # List of source directories to backup. Globs are expanded. + source_directories: +{% for dir in backup.dirs %} + - {{ dir }} +{% endfor %} + + # Paths to local or remote repositories. + repositories: + - {{ backup.host }}:{{ inventory_hostname }} + + one_file_system: True + remote_path: borg1 + + # Any paths matching these patterns are excluded from backups. + exclude_patterns: + - /home/*/.cache + +storage: + encryption_passphrase: {{ backup.phrase }} + compression: lz4 + +retention: + # Retention policy for how many backups to keep in each category. + keep_within: 3H + keep_daily: 7 + keep_weekly: 2 + keep_monthly: 3 + +consistency: + # List of consistency checks to run: "repository", "archives", or both. + checks: + - repository + - archives + + check_last: 1 -- cgit v1.2.3