mirror of
https://github.com/Steffo99/backup-duplicity.git
synced 2024-12-22 11:34:22 +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
|
```yml
|
||||||
secrets:
|
secrets:
|
||||||
duplicity_passphrase:
|
duplicity_passphrase:
|
||||||
file: "/root/secrets/backup/passphrase.txt"
|
file: "/root/secrets/duplicity/passphrase.txt"
|
||||||
google_client_config:
|
google_client_config:
|
||||||
file: "/root/secrets/backup/client_config.yml"
|
file: "/root/secrets/duplicity/client_config.yml"
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Add the following service:
|
4. Add the following service:
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
services:
|
services:
|
||||||
backup:
|
duplicity:
|
||||||
image: "ghcr.io/steffo99/backup-duplicity:latest"
|
image: "ghcr.io/steffo99/backup-duplicity:latest"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
secrets:
|
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:
|
6. Log in to Google Drive and perform an initial backup with:
|
||||||
|
|
||||||
```console
|
```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:
|
7. Properly start the container with:
|
||||||
|
|
|
@ -11,7 +11,7 @@ volumes:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
services:
|
services:
|
||||||
backup:
|
duplicity:
|
||||||
image: "ghcr.io/steffo99/backup-duplicity:latest"
|
image: "ghcr.io/steffo99/backup-duplicity:latest"
|
||||||
entrypoint: "/bin/sh"
|
entrypoint: "/bin/sh"
|
||||||
command: "/etc/periodic/daily/backup.sh"
|
command: "/etc/periodic/daily/backup.sh"
|
||||||
|
|
Loading…
Reference in a new issue