diff options
Diffstat (limited to 'systemd')
-rw-r--r-- | systemd/backup-notes.service | 6 | ||||
-rw-r--r-- | systemd/backup-notes.timer | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/systemd/backup-notes.service b/systemd/backup-notes.service new file mode 100644 index 0000000..8c223a4 --- /dev/null +++ b/systemd/backup-notes.service @@ -0,0 +1,6 @@ +[Unit] +Description=Backup notes to remote server + +[Service] +Type=oneshot +ExecStart=/home/lemon/code/bash/backup-notes diff --git a/systemd/backup-notes.timer b/systemd/backup-notes.timer new file mode 100644 index 0000000..e8d4a71 --- /dev/null +++ b/systemd/backup-notes.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Run backup-notes service every 30 minutes + +[Timer] +OnBootSec=10m +OnUnitActiveSec=30m +Unit=backup-notes.service + +[Install] +WantedBy=timers.target |