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

[IMP] add cache and update hostname

parent 51b6ebc2
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -2,7 +2,7 @@ version: "2.1"
services:
backup_privatebin:
image: tecnativa/duplicity:postgres
hostname: backup-privatebin
hostname: {{ inventory_hostname_short | lower | regex_replace('_','') }}-privatebin
environment:
DST: "swift://privatebin_{{ inventory_hostname|lower }}"
PGDATABASE: "none"
......@@ -20,11 +20,14 @@ services:
JOB_300_WHAT: "backup --full-if-older-than 6D"
JOB_302_WHAT: "dup remove-all-but-n-full 5 --force $$DST $$@"
JOB_302_WHEN: "daily"
OPTIONS: "--allow-source-mismatch"
volumes:
- privatebin_backup_cache:/root/.cache/duplicity/
- privatebin_data:/mnt/backup/src/privatebin:z
command:
- /etc/periodic/daily/jobrunner
volumes:
privatebin_backup_cache:
privatebin_data:
external: true
......@@ -2,7 +2,7 @@ version: "2.1"
services:
backup_privatebin:
image: tecnativa/duplicity:postgres
hostname: backup-privatebin
hostname: {{ inventory_hostname_short | lower | regex_replace('_','') }}-privatebin
environment:
DST: "swift://privatebin_{{ inventory_hostname|lower }}"
PGDATABASE: "none"
......@@ -20,11 +20,14 @@ services:
JOB_300_WHAT: "backup --full-if-older-than 6D"
JOB_302_WHAT: "dup remove-all-but-n-full 5 --force $$DST $$@"
JOB_302_WHEN: "daily"
OPTIONS: "--allow-source-mismatch"
volumes:
- privatebin_backup2_cache:/root/.cache/duplicity/
- privatebin_data:/mnt/backup/src/privatebin:z
command:
- /etc/periodic/daily/jobrunner
volumes:
privatebin_backup2_cache:
privatebin_data:
external: true
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