Improve borg config
All checks were successful
ShellCheck / shellcheck (push) Successful in 18s

This commit is contained in:
Mathieu Strypsteen 2024-08-25 16:57:33 +02:00
parent e983249efb
commit 209dab7320
Signed by: mathieu
GPG key ID: 782A42E461BC6824
3 changed files with 9 additions and 1 deletions

View file

@ -3,10 +3,14 @@ source_directories:
- /run/host/var/home - /run/host/var/home
- /run/host/var/lib/container-data - /run/host/var/lib/container-data
- /run/host/var/lib/containers/storage/secrets - /run/host/var/lib/containers/storage/secrets
- /run/host/var/lib/containers/storage/volumes - /run/host/var/lib/containers/storage/volumes/systemd-*
- /run/host/var/roothome - /run/host/var/roothome
exclude_patterns: exclude_patterns:
- /run/host/var/lib/containers/storage/volumes/systemd-monero - /run/host/var/lib/containers/storage/volumes/systemd-monero
repositories:
- label: remote
path: ${BORG_REMOTE}
encryption_passphrase: ${BORG_PASSWORD}
keep_daily: 7 keep_daily: 7
keep_weekly: 4 keep_weekly: 4
keep_monthly: 3 keep_monthly: 3

View file

@ -0,0 +1,2 @@
[Container]
Network=postgresql.network

View file

@ -11,6 +11,8 @@ Volume=borgmatic-config.volume:/root/.config/borg:U,Z
Volume=borgmatic-ssh.volume:/root/.ssh:U,Z Volume=borgmatic-ssh.volume:/root/.ssh:U,Z
Tmpfs=/etc/crontabs Tmpfs=/etc/crontabs
Environment=BACKUP_CRON="0 0 * * *" Environment=BACKUP_CRON="0 0 * * *"
Secret=BORG_PASSWORD,type=env
Secret=BORG_REMOTE,type=env
AutoUpdate=registry AutoUpdate=registry
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target