debug minio backup

master
omidshj 2025-02-10 13:33:00 +03:30
parent 967d4f42d2
commit 1e7eb28897
1 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,8 @@
- name: Export data
command: "s3cmd sync --preserve --config {{ config }} s3://{{ item }} {{ backup_dir }}"
- name: Create tar archive
command: "tar -czf "{{ backup_dir }}/{{server}}-{{service}}-{{ item }}.tar.gz" -C "{{ backup_dir }}" "{{ item }}""
command: >
tar -czf "{{ backup_dir }}/{{server}}-{{service}}-{{ item }}.tar.gz" -C "{{ backup_dir }}" "{{ item }}"
- name: Delete backed-up directories
file:
path: "{{ backup_dir }}/{{ item }}"