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

[IMP] add cache and update hostname

parent 4a7e8f07
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_etherpad:
image: tecnativa/duplicity:postgres
hostname: backup-etherpad
hostname: {{ inventory_hostname_short | lower | regex_replace('_','') }}-etherpad
environment:
DST: "swift://etherpad_{{ inventory_hostname|lower }}"
PGDATABASE: "{{ pad_db_name }}"
......@@ -19,9 +19,12 @@ 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"
networks:
- etherpad_default
- public
volumes:
- pad_backup_cache:/root/.cache/duplicity/
command:
- /etc/periodic/daily/jobrunner
......@@ -31,3 +34,6 @@ networks:
public:
driver_opts:
encrypted: 1
volumes:
pad_backup_cache:
......@@ -2,7 +2,7 @@ version: "2.1"
services:
backup_etherpad:
image: tecnativa/duplicity:postgres
hostname: backup-etherpad
hostname: {{ inventory_hostname_short | lower | regex_replace('_','') }}-etherpad
environment:
DST: "swift://etherpad_{{ inventory_hostname|lower }}"
PGDATABASE: "{{ pad_db_name }}"
......@@ -19,9 +19,12 @@ 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"
networks:
- etherpad_default
- public
volumes:
- pad_backup2_cache:/root/.cache/duplicity/
command:
- /etc/periodic/daily/jobrunner
......@@ -31,3 +34,6 @@ networks:
public:
driver_opts:
encrypted: 1
volumes:
pad_backup2_cache:
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