Archiviere das Backup
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 11s

This commit is contained in:
Marius Alwan Meyer 2023-05-01 15:46:44 +00:00
parent 283d63a37a
commit 17e748534f

View File

@ -18,11 +18,11 @@
when: docker_compose_stat.stat.exists is defined and docker_compose_stat.stat.exists when: docker_compose_stat.stat.exists is defined and docker_compose_stat.stat.exists
- name: Backup Gitea Directory - name: Backup Gitea Directory
ansible.posix.synchronize: community.general.archive:
src: /opt/gitea/ path: /opt/gitea/
dest: "/var/backups/gitea-{{ gitea.hostname }}.{{ gitea.domain }}@{{ lookup('pipe', 'date --utc --iso-8601=seconds') }}" dest: "/var/backups/gitea-{{ gitea.hostname }}.{{ gitea.domain }}@{{ lookup('pipe', 'date --utc --iso-8601=seconds') }}.tar.gz"
recursive: true format: gz
delegate_to: "{{ inventory_hostname }}" force_archive: true
listen: listen:
- Backup Gitea - Backup Gitea
register: backup register: backup