Archiviere das Backup
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 11s
ansible-lint / Ansible Lint (pull_request) Successful in 10s

This commit is contained in:
Marius Alwan Meyer 2023-05-01 16:07:56 +00:00
parent 283d63a37a
commit a451843b85

View File

@ -18,11 +18,13 @@
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 force_archive: true
delegate_to: "{{ inventory_hostname }}" format: gz
owner: root
mode: "400"
listen: listen:
- Backup Gitea - Backup Gitea
register: backup register: backup