diff options
author | Matt Singleton <matt@xcolour.net> | 2022-09-29 20:04:55 -0500 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2022-09-29 20:04:55 -0500 |
commit | e8f79e5a8b7c076b6aed925279a1ebb01bcc20e8 (patch) | |
tree | 19f60d74c6cd56ba6f78cefce10863007132a3ce /systemd | |
parent | 29f7bf92edf6031f8d40928514b9408cd3ec610f (diff) |
add systemd user services for backup
Diffstat (limited to 'systemd')
-rw-r--r-- | systemd/backup.service | 7 | ||||
-rw-r--r-- | systemd/backup.timer | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/systemd/backup.service b/systemd/backup.service new file mode 100644 index 0000000..c1adfde --- /dev/null +++ b/systemd/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/backup.timer b/systemd/backup.timer new file mode 100644 index 0000000..b7815d6 --- /dev/null +++ b/systemd/backup.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Run backup every four hours + +[Timer] +OnCalendar=*-*-* 0/4:15 +Persistent=true + +[Install] +WantedBy=timers.target |