Start to rotate backups.
This commit is contained in:
@@ -61,4 +61,11 @@
|
||||
loop_control:
|
||||
label: "{{ item.item[0] }} {{ item.item[1] }}"
|
||||
|
||||
- name: Store the yearly backups
|
||||
copy:
|
||||
remote_src: true
|
||||
src: "{{ backup_dir }}/{{ item }}/{{ ansible_date_time.iso8601_basic_short }}.sql"
|
||||
dest: "{{ backup_dir }}/{{ item }}/daily/"
|
||||
loop: "{{ databases }}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user