This commit is contained in:
parent
e983249efb
commit
209dab7320
3 changed files with 9 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
[Container]
|
||||||
|
Network=postgresql.network
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue