From f999b6c0b02d428298b932061ad18e217c0b363b Mon Sep 17 00:00:00 2001 From: Christian Steinle Date: Wed, 17 Nov 2021 11:11:28 +0100 Subject: [PATCH] Add compression to backup files --- host.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host.yaml b/host.yaml index 8ef6c4e..0b01bb7 100644 --- a/host.yaml +++ b/host.yaml @@ -11,7 +11,7 @@ - debug: var=ansible_date_time.iso8601_basic_short - name: Backup mysql databases - shell: docker exec mysql8 mysqldump -u{{ mysql_user }} -p{{ mysql_password }} {{ item }} > /home/chris/{{ item }}_{{ ansible_date_time.iso8601_basic_short }}.sql + shell: docker exec mysql8 mysqldump -u{{ mysql_user }} -p{{ mysql_password }} {{ item }} > /home/chris/{{ item }}_{{ ansible_date_time.iso8601_basic_short }}.sql |gzip loop: - bookstack - kimai