Skip to content
Snippets Groups Projects
Commit 2a478cde authored by Théo - Le Filament's avatar Théo - Le Filament
Browse files

change: add verbosity to backup task

parent 32ab5c5e
No related branches found
No related tags found
No related merge requests found
...@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment