Add host-specific variables for backup dirs and options.

This commit is contained in:
Andreas B. Mundt 2020-01-20 19:32:00 +01:00
parent 8a821f501d
commit 23766673be
4 changed files with 9 additions and 2 deletions

View file

@ -5,4 +5,7 @@ borg_key_backup: "/root/borg-key.backup"
## alternative: "ssh://user@host:port/path/to/repo"
backup_repo: "/var/backups/mnt/backup/borg"
backup_dirs_extra: ""
backup_opts: "--exclude-caches"
backup_opts_extra: ""

View file

@ -2,8 +2,8 @@
set -eu
REPOSITORY="{{ backup_repo }}"
BACKUP=({{ backup_dirs|join(' ') }})
EXTRAOPTIONS=({{ backup_opts }})
BACKUP=({{ backup_dirs|join(' ') }} {{ backup_dirs_extra|join(' ') }})
EXTRAOPTIONS=({{ backup_opts }} {{ backup_opts_extra }})
export BORG_PASSCOMMAND="cat {{ borg_pwd_file }}"
MOUNTED=""