Add all actual backups to daily logrotate.

This commit is contained in:
2021-11-19 10:53:41 +01:00
parent 073f1f921e
commit f7e80965b6

View File

@@ -105,8 +105,8 @@
- name: Store the daily backups - name: Store the daily backups
copy: copy:
remote_src: true remote_src: true
src: "{{ backup_dir }}/{{ item }}/{{ ansible_date_time.iso8601_basic_short }}.sql.gz" src: "{{ backup_dir }}/{{ item }}/"
dest: "{{ backup_dir }}/{{ item }}/daily/{{ ansible_date_time.iso8601_basic_short }}.sql.gz" dest: "{{ backup_dir }}/{{ item }}/daily/"
loop: "{{ databases }}" loop: "{{ databases }}"
when: (ansible_date_time.weekday_number != "7" and ansible_date_time.day != "01") when: (ansible_date_time.weekday_number != "7" and ansible_date_time.day != "01")