Rotate the backup on base of compressed files.
This commit is contained in:
@@ -64,7 +64,7 @@
|
|||||||
- name: Store the yearly backups
|
- name: Store the yearly backups
|
||||||
copy:
|
copy:
|
||||||
remote_src: true
|
remote_src: true
|
||||||
src: "{{ backup_dir }}/{{ item }}/{{ ansible_date_time.iso8601_basic_short }}.sql"
|
src: "{{ backup_dir }}/{{ item }}/{{ ansible_date_time.iso8601_basic_short }}.sql.gz"
|
||||||
dest: "{{ backup_dir }}/{{ item }}/daily/"
|
dest: "{{ backup_dir }}/{{ item }}/daily/"
|
||||||
loop: "{{ databases }}"
|
loop: "{{ databases }}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user