add systemd services

This commit is contained in:
Love 2024-07-12 14:47:19 +02:00
parent 8c77711b00
commit c212a70020
2 changed files with 18 additions and 0 deletions

9
backup-gitea.service Normal file
View 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
View File

@ -0,0 +1,9 @@
[Unit]
Description=Runs Gitea Backup Service daily
[Timer]
OnCalendar=*-*-* 02:00:00
Persistent=true
[Install]
WantedBy=timers.target