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

[FIX] backups

parent 68a72dbb
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
version: "2.1"
services:
backup_etherpad:
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('_','') }}-etherpad
environment:
DST: "swift://etherpad_{{ inventory_hostname|lower }}"
......@@ -16,10 +17,10 @@ services:
SWIFT_TENANTNAME: "{{ swift_odoo_tenantname }}"
SWIFT_TENANTID: "{{ swift_odoo_tenantid }}"
SWIFT_REGIONNAME: "{{ swift_odoo_regionname }}"
JOB_300_WHAT: "backup --full-if-older-than 6D"
JOB_200_WHEN: "never"
JOB_300_WHAT: "pg_dump --no-owner --no-privileges --file $$SRC/$$PGDATABASE.sql && 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
......
version: "2.1"
services:
backup_etherpad:
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('_','') }}-etherpad
environment:
DST: "swift://etherpad_{{ inventory_hostname|lower }}"
......@@ -16,10 +17,10 @@ services:
SWIFT_TENANTNAME: "{{ swift_odoo2_tenantname }}"
SWIFT_TENANTID: "{{ swift_odoo2_tenantid }}"
SWIFT_REGIONNAME: "{{ swift_odoo2_regionname }}"
JOB_300_WHAT: "backup --full-if-older-than 6D"
JOB_200_WHEN: "never"
JOB_300_WHAT: "pg_dump --no-owner --no-privileges --file $$SRC/$$PGDATABASE.sql && 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
......
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