Add playbooks/templates/borg/borgmatic-config.yaml.j2
This commit is contained in:
24
playbooks/templates/borg/borgmatic-config.yaml.j2
Normal file
24
playbooks/templates/borg/borgmatic-config.yaml.j2
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user