summaryrefslogtreecommitdiff
path: root/files/borgmatic_config.yaml.j2
diff options
context:
space:
mode:
authorMatthew Fennell <matthew@fennell.dev>2024-01-08 22:53:42 +0000
committerMatthew Fennell <matthew@fennell.dev>2024-01-08 22:53:42 +0000
commitf324bbdef4a71d33d4dd0adbd9037f600a058ad5 (patch)
treec85e20e304721313a8200ef1274e886b12f84479 /files/borgmatic_config.yaml.j2
parentd7e71e34d6eb308b20b6e7fee9eb6e6a74224897 (diff)
Install borgmatic in the playbook
This commit adds borgmatic, to provide automated backups.
Diffstat (limited to 'files/borgmatic_config.yaml.j2')
-rw-r--r--files/borgmatic_config.yaml.j225
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