Add all actual backups to daily logrotate.
This commit is contained in:
@@ -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")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user