This commit is contained in:
parent
283d63a37a
commit
cedc23fca3
@ -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') }}.gz"
|
||||||
recursive: true
|
format: gz
|
||||||
delegate_to: "{{ inventory_hostname }}"
|
force_archive: true
|
||||||
listen:
|
listen:
|
||||||
- Backup Gitea
|
- Backup Gitea
|
||||||
register: backup
|
register: backup
|
||||||
|
Loading…
Reference in New Issue
Block a user