Compare commits

...

3 Commits

Author SHA1 Message Date
cedc23fca3 Archiviere das Backup
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 11s
2023-05-01 15:42:31 +00:00
283d63a37a FQDN im Dateinamen 2023-05-01 15:27:30 +00:00
b5986b9592 Backup nach /var/backups 2023-05-01 15:25:07 +00:00

View File

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