From 93985fdb88dbd89e3524aefe3f0b3ce5167a786e Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Tue, 30 Sep 2025 23:09:16 -0700 Subject: Add backup role --- group_vars/all.yml | 4 +++- group_vars/backup.yml | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 group_vars/backup.yml (limited to 'group_vars') diff --git a/group_vars/all.yml b/group_vars/all.yml index 9cb5019..3665490 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -51,7 +51,6 @@ letsencrypt_certs: "{{ traextor_base }}/volumes/certs/letsencrypt" # -- -- # first deployment? homelab_build: false -#homelab_build: true # -- -- # -- -- @@ -98,6 +97,9 @@ mesh: - type: "A" name: "piplup.{{ domain }}" ip: "10.128.0.101" + - type: "A" + name: "borg.{{ domain }}" + ip: "10.128.0.115" - type: "A" name: "togepi.{{ domain }}" ip: "10.128.0.102" diff --git a/group_vars/backup.yml b/group_vars/backup.yml new file mode 100644 index 0000000..503e1ac --- /dev/null +++ b/group_vars/backup.yml @@ -0,0 +1,16 @@ +--- + +backup_domain: backup.{{ domain }} +backup_base: "{{ swarm_base }}/backup" +backup_retention_days: 10 +ntfy_topic: "{{ ntfy_topic }}" +blocklist: "node_modules .git __pycache__ /oci/ /backup/ node_modules .git __pycache__ .cache tmp temp build dist .yarn .npm cache .logs logs" + +# Borg backup settings +borg_repo: "{{ backups_borg_repo }}" # Can be local path or remote (ssh://user@host/path) +borg_passphrase: "{{ backups_borg_passphrase }}" +borg_compression: "zstd,3" +borg_keep_daily: 7 +borg_keep_weekly: 4 +borg_keep_monthly: 6 + -- cgit v1.2.3-70-g09d2