Add borgmatic monitoring
All checks were successful
ShellCheck / shellcheck (push) Successful in 19s

This commit is contained in:
Mathieu Strypsteen 2024-12-04 15:10:52 +01:00
parent dd83060357
commit c294328cb7
Signed by: mathieu
GPG key ID: 782A42E461BC6824
7 changed files with 13 additions and 6 deletions

View file

@ -5,8 +5,6 @@ source_directories:
- /run/host/var/lib/containers/storage/secrets
- /run/host/var/lib/containers/storage/volumes/systemd-*
- /run/host/var/roothome
exclude_patterns:
- /run/host/var/lib/containers/storage/volumes/systemd-monero
repositories:
- label: remote
path: ${BORG_REMOTE}
@ -15,4 +13,9 @@ keep_daily: 7
keep_weekly: 4
keep_monthly: 3
read_special: true
loki:
url: https://metrics.strypsteen.com/loki/api/v1/push
labels:
host: __hostname
job: borgmatic
<<: !include /etc/borgmatic/local.yaml

View file

@ -1,3 +1,5 @@
exclude_patterns:
- /run/host/var/lib/containers/storage/volumes/systemd-monero
postgresql_databases:
- name: all
hostname: systemd-postgresql

View file

@ -1,3 +1,5 @@
exclude_patterns:
- /run/host/var/lib/containers/storage/volumes/systemd-forgejo/_data/data/packages
postgresql_databases:
- name: all
hostname: systemd-postgresql

View file

@ -1,4 +1,4 @@
[Container]
Network=immich.network
Network=postgresql.network
Network=synapse.network
Secret=POSTGRES_PASSWORD,type=env

View file

@ -1,5 +1,5 @@
[Container]
Image=docker.io/postgres:16-alpine
Image=docker.io/postgres:17-alpine
Network=nextcloud.network
Network=synapse.network
Volume=postgresql.volume:/var/lib/postgresql/data:U,Z

View file

@ -1,5 +1,5 @@
[Container]
Image=docker.io/postgres:16-alpine
Image=docker.io/postgres:17-alpine
Network=postgresql.network
Volume=postgresql.volume:/var/lib/postgresql/data:U,Z
Secret=POSTGRES_PASSWORD,type=env

View file

@ -2,7 +2,7 @@
Image=ghcr.io/borgmatic-collective/borgmatic
SecurityLabelDisable=true
UserNS=host
HostName=borgmatic
HostName=%H
Volume=/var/lib/system-config/container-config/borgmatic/config.yaml:/etc/borgmatic/config.yaml:z,ro
Volume=/var/lib/system-config/container-config/borgmatic/%H.yaml:/etc/borgmatic/local.yaml:z,ro
Volume=/:/run/host:ro