From 73cb4c33f9cec809dea8c7af6ec735c8676b453f Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Tue, 26 Nov 2019 20:00:54 +0100 Subject: [PATCH] Write restic db to local fs --- docker-compose.yaml | 2 ++ restic_volume_backup.env | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 06723f3..96bc1dc 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -7,6 +7,8 @@ services: volumes: # Map in docker socket - /var/run/docker.sock:/tmp/docker.sock:ro + # Map backup database locally + - ./restic_data:/restic_data # Map in project source - .:/restic-volume-backup web: diff --git a/restic_volume_backup.env b/restic_volume_backup.env index 4cfc7f4..8521950 100644 --- a/restic_volume_backup.env +++ b/restic_volume_backup.env @@ -1,7 +1,7 @@ # DON'T COMMIT THIS FILE IF YOU MODIFY IN DEV DOCKER_BASE_URL=unix://tmp/docker.sock -RESTIC_REPOSITORY=/tmp/backup +RESTIC_REPOSITORY=/restic_data RESTIC_PASSWORD=password # Various env vars for restic : https://restic.readthedocs.io/en/stable/040_backup.html#environment-variables