diff --git a/backup-gitea.service b/backup-gitea.service new file mode 100644 index 0000000..b2a6c98 --- /dev/null +++ b/backup-gitea.service @@ -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 diff --git a/backup-gitea.timer b/backup-gitea.timer new file mode 100644 index 0000000..76ddce7 --- /dev/null +++ b/backup-gitea.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Runs Gitea Backup Service daily + +[Timer] +OnCalendar=*-*-* 02:00:00 +Persistent=true + +[Install] +WantedBy=timers.target \ No newline at end of file