Compress the database backups on minisforum.
This commit is contained in:
@@ -46,9 +46,8 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item[1].name }}"
|
label: "{{ item[1].name }}"
|
||||||
|
|
||||||
- name: Gzip all database backup files
|
- name: Compress all database backup files
|
||||||
ansible.builtin.debug:
|
shell: gzip {{ backup_location }}{{ item[0].name }}/{{ item[1].container }}-{{ ansible_date_time.iso8601_basic_short }}.sql
|
||||||
msg: '{{ item[0].name }}' # Container name
|
|
||||||
loop: "{{ containers | subelements('database', skip_missing=True) }}"
|
loop: "{{ containers | subelements('database', skip_missing=True) }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item[1].name }}"
|
label: "{{ item[1].name }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user