From ce1b70acf804b5ded2231d69f1bd02d7c978a4af Mon Sep 17 00:00:00 2001 From: Christian Steinle Date: Wed, 17 Nov 2021 11:09:09 +0100 Subject: [PATCH] Add timestamps to backup files. --- host.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host.yaml b/host.yaml index 0b05c05..69aacf3 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 }}.sql + shell: docker exec mysql8 mysqldump -u{{ mysql_user }} -p{{ mysql_password }} {{ item }} > /home/chris/{{ item }}_{{ ansible_data_time.iso8601_basic_short }}.sql loop: - bookstack - kimai