diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-10-10 17:09:36 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-10-10 17:09:36 +0100 |
commit | 3c86744025ae9c3b81f10e5a2392c6b84a1e94c0 (patch) | |
tree | 4559f6858622e67d7ef7fa380ac50168a59b223a /systemd | |
parent | df6a7ef5adfe3a676540809ca1c479b9fade5939 (diff) |
added systemd timer files
Diffstat (limited to 'systemd')
-rw-r--r-- | systemd/backup_budget.service | 9 | ||||
-rw-r--r-- | systemd/backup_budget.timer | 12 |
2 files changed, 21 insertions, 0 deletions
diff --git a/systemd/backup_budget.service b/systemd/backup_budget.service new file mode 100644 index 0000000..2504b36 --- /dev/null +++ b/systemd/backup_budget.service @@ -0,0 +1,9 @@ +# must be symlinked from ~/.config/systemd/user +[Unit] +Description=Backup budget directory to git-annex + +[Service] +# User=lemon +# Group=lemon +Type=oneshot +ExecStart=/home/lemon/bin/backup_budget_annex.sh > /dev/null 2>&1 diff --git a/systemd/backup_budget.timer b/systemd/backup_budget.timer new file mode 100644 index 0000000..94b4eb5 --- /dev/null +++ b/systemd/backup_budget.timer @@ -0,0 +1,12 @@ +# must be symlinked from ~/.config/systemd/user +[Unit] +Description=Backup budget timer + +[Timer] +# run 10m after boot +OnBootSec=10m +# then every hour +OnUnitActiveSec=1h + +[Install] +WantedBy=timers.target |