diff options
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 |