From 0f8796759d2129fc24d1d028143125c62e63820f Mon Sep 17 00:00:00 2001 From: Ryan Hamilton Date: Wed, 30 Jul 2025 05:45:30 +0000 Subject: [PATCH] Add playbooks/templates/borg/borgmatic-config.yaml.j2 --- .../templates/borg/borgmatic-config.yaml.j2 | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 playbooks/templates/borg/borgmatic-config.yaml.j2 diff --git a/playbooks/templates/borg/borgmatic-config.yaml.j2 b/playbooks/templates/borg/borgmatic-config.yaml.j2 new file mode 100644 index 0000000..247b65a --- /dev/null +++ b/playbooks/templates/borg/borgmatic-config.yaml.j2 @@ -0,0 +1,24 @@ +location: + source_directories: + # ✅ Always back up system configuration + - /etc + + # Uncomment these if you want Docker data/configs + # - /srv/docker + # - /opt/docker + + # ✅ Borg repository destination (injected as a variable) + repositories: + - {{ borg_repo_url }} + + # ✅ Include hostname in archive names for multi-host dedupe + archive_name_format: "{hostname}-{now:%Y-%m-%dT%H:%M:%S}" + +storage: + # ✅ Encryption key; supply via vault/secret + encryption_passphrase: "{{ borg_encryption_passphrase | default('changeme') }}" + +retention: + keep_daily: 7 + keep_weekly: 4 + keep_monthly: 6