diff options
author | Matthew Fennell <matthew@fennell.dev> | 2024-01-08 22:53:42 +0000 |
---|---|---|
committer | Matthew Fennell <matthew@fennell.dev> | 2024-01-08 22:53:42 +0000 |
commit | f324bbdef4a71d33d4dd0adbd9037f600a058ad5 (patch) | |
tree | c85e20e304721313a8200ef1274e886b12f84479 /files | |
parent | d7e71e34d6eb308b20b6e7fee9eb6e6a74224897 (diff) |
Install borgmatic in the playbook
This commit adds borgmatic, to provide automated backups.
Diffstat (limited to 'files')
-rw-r--r-- | files/borgmatic_config.yaml.j2 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/files/borgmatic_config.yaml.j2 b/files/borgmatic_config.yaml.j2 new file mode 100644 index 0000000..1343351 --- /dev/null +++ b/files/borgmatic_config.yaml.j2 @@ -0,0 +1,25 @@ +# SPDX-FileCopyrightText: 2024 Matthew Fennell <matthew@fennell.dev> +# +# SPDX-License-Identifier: AGPL-3.0-only + +--- + +location: + source_directories: + - /etc/prosody + - /var/lib/prosody + repositories: + - "{{ borg_repo }}" +storage: + encryption_passphrase: "{{ borg_passphrase }}" + ssh_command: ssh -i /root/.ssh/borg_key + archive_name_format: "{{ virtual_host }}-{now}" +retention: + keep_daily: 7 + keep_weekly: 4 + keep_monthly: 12 + keep_yearly: 10 + prefix: "{{ virtual_host }}-" +consistency: + checks: + - name: disabled |