1
Fork 0
mirror of https://github.com/Steffo99/backup-duplicity.git synced 2024-12-22 11:34:22 +00:00

Add caching

This commit is contained in:
Steffo 2024-10-24 11:04:36 +02:00
parent c323b79d96
commit 5319dfc0ab
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -7,6 +7,8 @@ secrets:
volumes: volumes:
duplicity_credentials: duplicity_credentials:
external: true external: true
duplicity_cache:
external: true
services: services:
duplicity: duplicity:
@ -17,6 +19,7 @@ services:
volumes: volumes:
- "./exampledata:/mnt/example" - "./exampledata:/mnt/example"
- "duplicity_credentials:/var/lib/duplicity" - "duplicity_credentials:/var/lib/duplicity"
- "duplicity_cache:/usr/lib/duplicity/.cache/duplicity"
environment: environment:
MODE: "backup" MODE: "backup"
DUPLICITY_PASSPHRASE_FILE: "/run/secrets/duplicity_passphrase" DUPLICITY_PASSPHRASE_FILE: "/run/secrets/duplicity_passphrase"