diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-03-21 10:29:56 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-03-21 10:29:56 +0100 |
commit | 2224bfa7af546bcf41f7d4a2f91d603f1eb96f76 (patch) | |
tree | 8aaa331b4550b9f3f19050377b8b634a829def2d /systemd |
Diffstat (limited to 'systemd')
-rw-r--r-- | systemd/backup.service | 9 | ||||
-rw-r--r-- | systemd/backup.timer | 8 |
2 files changed, 17 insertions, 0 deletions
diff --git a/systemd/backup.service b/systemd/backup.service new file mode 100644 index 0000000..4e35922 --- /dev/null +++ b/systemd/backup.service @@ -0,0 +1,9 @@ +[Unit] +Description=Backup cronjob + +[Service] +Type=oneshot +ExecStart=/root/backup/run + +[Install] +WantedBy=multi-user.target diff --git a/systemd/backup.timer b/systemd/backup.timer new file mode 100644 index 0000000..12cb76e --- /dev/null +++ b/systemd/backup.timer @@ -0,0 +1,8 @@ +[Unit] +Description=Backup cronjob + +[Timer] +OnCalendar=*-*-* 03:00:00 + +[Install] +WantedBy=timers.target |