server/gitea: Added auto backup support for repositories

wip
Felix Stupp 5 years ago
parent 39e7f60aba
commit f77d57eba8
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -80,6 +80,15 @@
- reload systemd - reload systemd
- restart gitea - restart gitea
- name: Configure auto backup of gitea repositories directory
cron:
hour: 1
minute: 0
job: "{{ global_helper_directory }}/backup_files.sh {{ gitea_repositories_directory | quote }} {{ domain | quote }}"
name: "backup gitea repositories of {{ domain }}"
state: present
# TODO Disable backup in update process
- name: Enable auto update of gitea - name: Enable auto update of gitea
cron: cron:
hour: 2 hour: 2

Loading…
Cancel
Save