add systemd services
This commit is contained in:
parent
8c77711b00
commit
c212a70020
9
backup-gitea.service
Normal file
9
backup-gitea.service
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Gitea Backup Service
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/gitea-backup.sh
|
||||
User=root
|
9
backup-gitea.timer
Normal file
9
backup-gitea.timer
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Runs Gitea Backup Service daily
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 02:00:00
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Loading…
x
Reference in New Issue
Block a user