eeeeeu
parent
789321ff37
commit
a316fd1ed8
|
@ -18,4 +18,9 @@
|
||||||
- name: Archive each directory separately
|
- name: Archive each directory separately
|
||||||
command: >
|
command: >
|
||||||
tar -czf "{{ backup_dir }}/{{ item }}-{{ weekday.stdout }}.tar.gz" -C "{{ backup_dir }}" "{{ item }}"
|
tar -czf "{{ backup_dir }}/{{ item }}-{{ weekday.stdout }}.tar.gz" -C "{{ backup_dir }}" "{{ item }}"
|
||||||
|
loop: "{{ db_names }}"
|
||||||
|
- name: Delete backed-up directories
|
||||||
|
file:
|
||||||
|
path: "{{ backup_dir }}/{{ item }}"
|
||||||
|
state: absent
|
||||||
loop: "{{ db_names }}"
|
loop: "{{ db_names }}"
|
Loading…
Reference in New Issue