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