Skip to content
Extraits de code Groupes Projets
Valider 5ab2939e rédigé par Rémi - Le Filament's avatar Rémi - Le Filament
Parcourir les fichiers

[ENH] update backup image and remove source mismatch

parent cb2be37c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
version: "2.1" version: "2.1"
services: services:
backup_privatebin: backup_privatebin:
image: tecnativa/duplicity:postgres image: remifilament/duplicity:postgres # Until https://github.com/Tecnativa/docker-duplicity/pull/324 is merged
# image: ghcr.io/tecnativa/docker-duplicity-postgres:master # Once https://github.com/Tecnativa/docker-duplicity/pull/324 is merged
hostname: {{ inventory_hostname_short | lower | regex_replace('_','') }}-privatebin hostname: {{ inventory_hostname_short | lower | regex_replace('_','') }}-privatebin
environment: environment:
DST: "swift://privatebin_{{ inventory_hostname|lower }}" DST: "swift://privatebin_{{ inventory_hostname|lower }}"
...@@ -20,7 +21,6 @@ services: ...@@ -20,7 +21,6 @@ services:
JOB_300_WHAT: "backup --full-if-older-than 6D" JOB_300_WHAT: "backup --full-if-older-than 6D"
JOB_302_WHAT: "dup remove-all-but-n-full 5 --force $$DST $$@" JOB_302_WHAT: "dup remove-all-but-n-full 5 --force $$DST $$@"
JOB_302_WHEN: "daily" JOB_302_WHEN: "daily"
OPTIONS: "--allow-source-mismatch"
volumes: volumes:
- privatebin_backup_cache:/root/.cache/duplicity/ - privatebin_backup_cache:/root/.cache/duplicity/
- privatebin_data:/mnt/backup/src/privatebin:z - privatebin_data:/mnt/backup/src/privatebin:z
......
version: "2.1" version: "2.1"
services: services:
backup_privatebin: backup_privatebin:
image: tecnativa/duplicity:postgres image: remifilament/duplicity:postgres # Until https://github.com/Tecnativa/docker-duplicity/pull/324 is merged
# image: ghcr.io/tecnativa/docker-duplicity-postgres:master # Once https://github.com/Tecnativa/docker-duplicity/pull/324 is merged
hostname: {{ inventory_hostname_short | lower | regex_replace('_','') }}-privatebin hostname: {{ inventory_hostname_short | lower | regex_replace('_','') }}-privatebin
environment: environment:
DST: "swift://privatebin_{{ inventory_hostname|lower }}" DST: "swift://privatebin_{{ inventory_hostname|lower }}"
...@@ -20,7 +21,6 @@ services: ...@@ -20,7 +21,6 @@ services:
JOB_300_WHAT: "backup --full-if-older-than 6D" JOB_300_WHAT: "backup --full-if-older-than 6D"
JOB_302_WHAT: "dup remove-all-but-n-full 5 --force $$DST $$@" JOB_302_WHAT: "dup remove-all-but-n-full 5 --force $$DST $$@"
JOB_302_WHEN: "daily" JOB_302_WHEN: "daily"
OPTIONS: "--allow-source-mismatch"
volumes: volumes:
- privatebin_backup2_cache:/root/.cache/duplicity/ - privatebin_backup2_cache:/root/.cache/duplicity/
- privatebin_data:/mnt/backup/src/privatebin:z - privatebin_data:/mnt/backup/src/privatebin:z
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter