Gogs backups

This commit is contained in:
2020-12-03 00:22:50 +03:00
parent d28e254be8
commit 644bd27db5
+18
View File
@@ -16,6 +16,24 @@
Install:
WantedBy: multi-user.target
- name: gogs-backup
Unit:
Description: Creates gogs backup
Service:
Type: oneshot
User: 'git'
Group: 'git'
WorkingDirectory: /mnt/DATA/backups
ExecStart: /mnt/DATA/gogsRuntime/dist/gogs backup -c /mnt/DATA/gogsRuntime/gogs/conf/app.ini
- name: gogs-backup-timer
type: timer
Timer:
OnBootSec: 10min
OnUnitInactiveSec: 1d
Unit: gogs-backup.service
tasks:
- name: group git exists
group: