add backup stack with borgmatic backup service

This commit is contained in:
2026-03-08 00:10:33 +01:00
parent 0b110431fa
commit 2fae5bef3f
3 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
services:
borgmatic:
labels:
net.unraid.docker.managed: 'composeman'
net.unraid.docker.icon: 'https://cdn.jsdelivr.net/gh/selfhst/icons@main/png/borgmatic.png'
net.unraid.docker.webui: ''
net.unraid.docker.shell: ''

18
backup/docker-compose.yml Normal file
View File

@@ -0,0 +1,18 @@
services:
borgmatic:
image: ghcr.io/borgmatic-collective/borgmatic:latest
container_name: borgmatic
volumes:
- /mnt/user/nextcloud-data/tonitrus/files/documents/Schule:/mnt/source:ro # backup source
- /mnt/remotes/10.0.0.50_home/Drive/backup-cube-test:/mnt/borg-repository # backup target
- /mnt/user/appdata/borgmatic/borgmatic.d:/etc/borgmatic.d/ # borgmatic config file(s) + crontab.txt
- /mnt/user/appdata/borgmatic/.config/borg:/root/.config/borg # config and keyfiles
- /mnt/user/appdata/borgmatic/.ssh:/root/.ssh # ssh key for remote repositories
- /mnt/user/appdata/borgmatic/.cache/borg:/root/.cache/borg # checksums used for deduplication
- /mnt/user/appdata/borgmatic/.state/borgmatic:/root/.local/state/borgmatic # Here are the state files for periodic checks
env_file:
- .env
labels:
net.unraid.docker.icon: "https://cdn.jsdelivr.net/gh/selfhst/icons@main/png/borgmatic.png"
net.unraid.docker.shell: sh
folder.view2: "Services"

1
backup/name Normal file
View File

@@ -0,0 +1 @@
backup