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

[IMP] add cache and update hostname

parent 89506183
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -5,7 +5,7 @@ services: ...@@ -5,7 +5,7 @@ services:
context: . context: .
dockerfile: Dockerfile-mysql dockerfile: Dockerfile-mysql
image: filament/duplicity:mysql image: filament/duplicity:mysql
hostname: backup-framadate hostname: {{ inventory_hostname_short | lower | regex_replace('_','') }}-framadate
environment: environment:
DST: "swift://framadate_{{ inventory_hostname|lower }}" DST: "swift://framadate_{{ inventory_hostname|lower }}"
MYSQL_DATABASE: "{{ date_db_user }}" MYSQL_DATABASE: "{{ date_db_user }}"
...@@ -23,9 +23,12 @@ services: ...@@ -23,9 +23,12 @@ 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"
networks: networks:
- framadate_default - framadate_default
- public - public
volumes:
- date_backup_cache:/root/.cache/duplicity/
command: command:
- /etc/periodic/daily/jobrunner - /etc/periodic/daily/jobrunner
...@@ -35,3 +38,6 @@ networks: ...@@ -35,3 +38,6 @@ networks:
public: public:
driver_opts: driver_opts:
encrypted: 1 encrypted: 1
volumes:
date_backup_cache:
...@@ -5,7 +5,7 @@ services: ...@@ -5,7 +5,7 @@ services:
context: . context: .
dockerfile: Dockerfile-mysql dockerfile: Dockerfile-mysql
image: filament/duplicity:mysql image: filament/duplicity:mysql
hostname: backup-framadate hostname: {{ inventory_hostname_short | lower | regex_replace('_','') }}-framadate
environment: environment:
DST: "swift://framadate_{{ inventory_hostname|lower }}" DST: "swift://framadate_{{ inventory_hostname|lower }}"
MYSQL_DATABASE: "{{ date_db_user }}" MYSQL_DATABASE: "{{ date_db_user }}"
...@@ -23,9 +23,12 @@ services: ...@@ -23,9 +23,12 @@ 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"
networks: networks:
- framadate_default - framadate_default
- public - public
volumes:
- date_backup2_cache:/root/.cache/duplicity/
command: command:
- /etc/periodic/daily/jobrunner - /etc/periodic/daily/jobrunner
...@@ -35,3 +38,6 @@ networks: ...@@ -35,3 +38,6 @@ networks:
public: public:
driver_opts: driver_opts:
encrypted: 1 encrypted: 1
volumes:
date_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