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

Rename service from backup to duplicity

This commit is contained in:
Steffo 2023-06-18 20:42:32 +02:00
parent 78bb5beabc
commit 184c18752e
Signed by: steffo
GPG key ID: 2A24051445686895
2 changed files with 5 additions and 5 deletions

View file

@ -62,16 +62,16 @@ Backup solution for Docker volumes based on Duplicity
```yml
secrets:
duplicity_passphrase:
file: "/root/secrets/backup/passphrase.txt"
file: "/root/secrets/duplicity/passphrase.txt"
google_client_config:
file: "/root/secrets/backup/client_config.yml"
file: "/root/secrets/duplicity/client_config.yml"
```
4. Add the following service:
```yml
services:
backup:
duplicity:
image: "ghcr.io/steffo99/backup-duplicity:latest"
restart: unless-stopped
secrets:
@ -93,7 +93,7 @@ Backup solution for Docker volumes based on Duplicity
6. Log in to Google Drive and perform an initial backup with:
```console
# docker compose run -i --entrypoint=/bin/sh --volume='.:/mnt' --volume='duplicity_credentials:/var/lib/duplicity' backup /etc/periodic/daily/backup.sh
# docker compose run -i --entrypoint=/bin/sh --volume='.:/mnt' --volume='duplicity_credentials:/var/lib/duplicity' duplicity /etc/periodic/daily/backup.sh
```
7. Properly start the container with:

View file

@ -11,7 +11,7 @@ volumes:
external: true
services:
backup:
duplicity:
image: "ghcr.io/steffo99/backup-duplicity:latest"
entrypoint: "/bin/sh"
command: "/etc/periodic/daily/backup.sh"