services: add Restic
Finally a way to actually back up my data...
This commit is contained in:
parent
2e84953a66
commit
ff5ff5bb3d
|
@ -370,3 +370,15 @@ services:
|
||||||
- ./riot/config.json:/app/config.json
|
- ./riot/config.json:/app/config.json
|
||||||
expose:
|
expose:
|
||||||
- 80
|
- 80
|
||||||
|
|
||||||
|
restic:
|
||||||
|
image: lobaro/restic-backup-docker
|
||||||
|
restart: unless-stopped
|
||||||
|
container_name: restic
|
||||||
|
hostname: restic-athos
|
||||||
|
env_file:
|
||||||
|
- ./restic/restic.env
|
||||||
|
- ./restic/restic.env.secret
|
||||||
|
volumes:
|
||||||
|
- ~/library/:/data/library
|
||||||
|
- ~/nextcloud/:/data/nextcloud
|
||||||
|
|
5
restic/restic.env
Normal file
5
restic/restic.env
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
RESTIC_FORGET_ARGS=--prune --keep-last 10 --keep-hourly 24 --keep-daily 7 --keep-weekly 5 --keep-monthly 12 --keep-yearly 100
|
||||||
|
#RESTIC_PASSWORD=FIXME
|
||||||
|
#B2_ACCOUNT_ID=FIXME
|
||||||
|
#B2_ACCOUNT_KEY=FIXME
|
||||||
|
#RESTIC_REPOSITORY=FIXME
|
Reference in a new issue