From 42e9aa25158a5c2d379b4a70bdf406807be83e57 Mon Sep 17 00:00:00 2001 From: Christian Steinle Date: Fri, 19 Nov 2021 11:47:11 +0100 Subject: [PATCH] Rework storing of daily backups. --- odroid.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/odroid.yaml b/odroid.yaml index db9fc36..e3147fc 100644 --- a/odroid.yaml +++ b/odroid.yaml @@ -112,7 +112,10 @@ loop: "{{ systems }}" - name: Store the daily backup - debug: var="{{ item.path | dirname }}" + copy: + remote_src: true + src: "{{ item.path }}" + dest: "{{ item.path | dirname }}/daily/{{ item.path | basename }}" with_items: "{{ backup_files.results | map(attribute='files') | list }}" when: (ansible_date_time.weekday_number != "7" and ansible_date_time.day != "01")