forked from org1/infra
Gogs backups
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user