Write restic db to local fs

This commit is contained in:
Einar Forselv 2019-11-26 20:00:54 +01:00
parent fb17795566
commit 73cb4c33f9
2 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,8 @@ services:
volumes: volumes:
# Map in docker socket # Map in docker socket
- /var/run/docker.sock:/tmp/docker.sock:ro - /var/run/docker.sock:/tmp/docker.sock:ro
# Map backup database locally
- ./restic_data:/restic_data
# Map in project source # Map in project source
- .:/restic-volume-backup - .:/restic-volume-backup
web: web:

View File

@ -1,7 +1,7 @@
# DON'T COMMIT THIS FILE IF YOU MODIFY IN DEV # DON'T COMMIT THIS FILE IF YOU MODIFY IN DEV
DOCKER_BASE_URL=unix://tmp/docker.sock DOCKER_BASE_URL=unix://tmp/docker.sock
RESTIC_REPOSITORY=/tmp/backup RESTIC_REPOSITORY=/restic_data
RESTIC_PASSWORD=password RESTIC_PASSWORD=password
# Various env vars for restic : https://restic.readthedocs.io/en/stable/040_backup.html#environment-variables # Various env vars for restic : https://restic.readthedocs.io/en/stable/040_backup.html#environment-variables