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