Skip to content
Extraits de code Groupes Projets
Valider 2a478cde rédigé par Théo - Le Filament's avatar Théo - Le Filament
Parcourir les fichiers

change: add verbosity to backup task

parent 32ab5c5e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -32,7 +32,7 @@ services: ...@@ -32,7 +32,7 @@ services:
- public - public
command: > command: >
/bin/ash -c " /bin/ash -c "
echo \"info: start backuping\" echo \"info: backup started on $$(date -Iseconds)\"
{% if database_type == 'postgres' %} {% if database_type == 'postgres' %}
&& echo \"info: creating '$$SRC' directory...\" && echo \"info: creating '$$SRC' directory...\"
&& mkdir --parents $$SRC && mkdir --parents $$SRC
...@@ -43,7 +43,7 @@ services: ...@@ -43,7 +43,7 @@ services:
&& duplicity backup --full-if-older-than 6D $$SRC $$DST && duplicity backup --full-if-older-than 6D $$SRC $$DST
&& echo \"info: removing all but 5 full backups in '$$DST'\" && echo \"info: removing all but 5 full backups in '$$DST'\"
&& duplicity remove-all-but-n-full 5 --force $$DST && duplicity remove-all-but-n-full 5 --force $$DST
&& echo \"info: done\"" && echo \"info: backup done\""
networks: networks:
{% if database_type == 'postgres' %} {% if database_type == 'postgres' %}
......
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