Compare commits
2 Commits
c39d29c03f
...
d03e1142f2
Author | SHA1 | Date | |
---|---|---|---|
|
d03e1142f2 | ||
|
fbc2a17011 |
@ -6,7 +6,7 @@
|
||||
- Backup Gitea
|
||||
|
||||
- name: Stop Gitea for backup
|
||||
community.docker.docker_compose:
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: /opt/gitea
|
||||
state: present
|
||||
stopped: true
|
||||
@ -20,7 +20,7 @@
|
||||
- name: Backup Gitea directory
|
||||
community.general.archive:
|
||||
path: /opt/gitea/
|
||||
dest: "/var/backups/gitea-{{ gitea.hostname }}.{{ gitea.domain }}@{{ lookup('pipe', 'date --utc --iso-8601=seconds') }}.tar.gz"
|
||||
dest: "/var/backups/gitea-{{ gitea.hostname }}.{{ gitea.domain }}@{{ lookup('pipe', 'date -u +%Y-%m-%dT%H:%M:%SZ') }}.tar.gz"
|
||||
force_archive: true
|
||||
format: gz
|
||||
owner: root
|
||||
|
@ -3,13 +3,13 @@
|
||||
file: backup.yaml
|
||||
|
||||
- name: Ensure Gitea is restarted
|
||||
community.docker.docker_compose:
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: /opt/gitea
|
||||
restarted: true
|
||||
register: docker_compose
|
||||
|
||||
- name: Ensure Gitea is running
|
||||
community.docker.docker_compose:
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: /opt/gitea
|
||||
register: docker_compose
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user