diff --git a/gogs.yaml b/gogs.yaml index 3c3e3fd..6c8e0b9 100644 --- a/gogs.yaml +++ b/gogs.yaml @@ -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: