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:
parent
78bb5beabc
commit
184c18752e
2 changed files with 5 additions and 5 deletions
|
@ -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:
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue