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

[ENH] backup image and command

parent d0574da4
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_mattermost: backup_mattermost:
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('_','') }}-mattermost hostname: {{ inventory_hostname_short | lower | regex_replace('_','') }}-mattermost
environment: environment:
DST: "swift://mattermost_{{ inventory_hostname|lower }}" DST: "swift://mattermost_{{ inventory_hostname|lower }}"
...@@ -16,7 +17,8 @@ services: ...@@ -16,7 +17,8 @@ services:
SWIFT_TENANTNAME: "{{ swift_odoo_tenantname }}" SWIFT_TENANTNAME: "{{ swift_odoo_tenantname }}"
SWIFT_TENANTID: "{{ swift_odoo_tenantid }}" SWIFT_TENANTID: "{{ swift_odoo_tenantid }}"
SWIFT_REGIONNAME: "{{ swift_odoo_regionname }}" 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_WHAT: "dup remove-all-but-n-full 5 --force $$DST $$@"
JOB_302_WHEN: "daily" JOB_302_WHEN: "daily"
volumes: volumes:
......
version: "2.1" version: "2.1"
services: services:
backup_mattermost: backup_mattermost:
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('_','') }}-mattermost hostname: {{ inventory_hostname_short | lower | regex_replace('_','') }}-mattermost
environment: environment:
DST: "swift://mattermost_{{ inventory_hostname|lower }}" DST: "swift://mattermost_{{ inventory_hostname|lower }}"
...@@ -16,7 +17,8 @@ services: ...@@ -16,7 +17,8 @@ services:
SWIFT_TENANTNAME: "{{ swift_odoo2_tenantname }}" SWIFT_TENANTNAME: "{{ swift_odoo2_tenantname }}"
SWIFT_TENANTID: "{{ swift_odoo2_tenantid }}" SWIFT_TENANTID: "{{ swift_odoo2_tenantid }}"
SWIFT_REGIONNAME: "{{ swift_odoo2_regionname }}" 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_WHAT: "dup remove-all-but-n-full 5 --force $$DST $$@"
JOB_302_WHEN: "daily" JOB_302_WHEN: "daily"
volumes: volumes:
......
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