Compare commits
2 Commits
c39d29c03f
...
d03e1142f2
Author | SHA1 | Date | |
---|---|---|---|
|
d03e1142f2 | ||
|
fbc2a17011 |
@ -6,7 +6,7 @@
|
|||||||
- Backup Gitea
|
- Backup Gitea
|
||||||
|
|
||||||
- name: Stop Gitea for backup
|
- name: Stop Gitea for backup
|
||||||
community.docker.docker_compose:
|
community.docker.docker_compose_v2:
|
||||||
project_src: /opt/gitea
|
project_src: /opt/gitea
|
||||||
state: present
|
state: present
|
||||||
stopped: true
|
stopped: true
|
||||||
@ -20,7 +20,7 @@
|
|||||||
- name: Backup Gitea directory
|
- name: Backup Gitea directory
|
||||||
community.general.archive:
|
community.general.archive:
|
||||||
path: /opt/gitea/
|
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
|
force_archive: true
|
||||||
format: gz
|
format: gz
|
||||||
owner: root
|
owner: root
|
||||||
|
@ -3,13 +3,13 @@
|
|||||||
file: backup.yaml
|
file: backup.yaml
|
||||||
|
|
||||||
- name: Ensure Gitea is restarted
|
- name: Ensure Gitea is restarted
|
||||||
community.docker.docker_compose:
|
community.docker.docker_compose_v2:
|
||||||
project_src: /opt/gitea
|
project_src: /opt/gitea
|
||||||
restarted: true
|
restarted: true
|
||||||
register: docker_compose
|
register: docker_compose
|
||||||
|
|
||||||
- name: Ensure Gitea is running
|
- name: Ensure Gitea is running
|
||||||
community.docker.docker_compose:
|
community.docker.docker_compose_v2:
|
||||||
project_src: /opt/gitea
|
project_src: /opt/gitea
|
||||||
register: docker_compose
|
register: docker_compose
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user