diff options
author | Matt Singleton <matt@xcolour.net> | 2023-02-03 14:39:07 -0600 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2023-02-03 14:39:07 -0600 |
commit | e9dc4c1090abb01317847c417b75d3960f3da34d (patch) | |
tree | 2fb84cf24675f1294f9f7a33ea949d514844c6f1 /systemd/linux | |
parent | 969f76a8238e2d43a25740c8272bf635d436f0d3 (diff) |
only install platform-appropriate configs based on uname
Diffstat (limited to 'systemd/linux')
-rw-r--r-- | systemd/linux/backup.service | 7 | ||||
-rw-r--r-- | systemd/linux/backup.timer | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/systemd/linux/backup.service b/systemd/linux/backup.service new file mode 100644 index 0000000..c1adfde --- /dev/null +++ b/systemd/linux/backup.service @@ -0,0 +1,7 @@ +[Unit] +Description=Backup with duplicity +After=network.target + +[Service] +Type=oneshot +ExecStart=bash ${HOME}/.local/bin/backup diff --git a/systemd/linux/backup.timer b/systemd/linux/backup.timer new file mode 100644 index 0000000..b7815d6 --- /dev/null +++ b/systemd/linux/backup.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Run backup every four hours + +[Timer] +OnCalendar=*-*-* 0/4:15 +Persistent=true + +[Install] +WantedBy=timers.target |