diff --git a/roles/server/gitea/tasks/main.yml b/roles/server/gitea/tasks/main.yml index d7be82b..c26630f 100644 --- a/roles/server/gitea/tasks/main.yml +++ b/roles/server/gitea/tasks/main.yml @@ -80,6 +80,15 @@ - reload systemd - 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 cron: hour: 2