From f324bbdef4a71d33d4dd0adbd9037f600a058ad5 Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Mon, 8 Jan 2024 22:53:42 +0000 Subject: Install borgmatic in the playbook This commit adds borgmatic, to provide automated backups. --- files/borgmatic_config.yaml.j2 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 files/borgmatic_config.yaml.j2 (limited to 'files/borgmatic_config.yaml.j2') 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 +# +# 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 -- cgit v1.2.3