From e8f79e5a8b7c076b6aed925279a1ebb01bcc20e8 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Thu, 29 Sep 2022 20:04:55 -0500 Subject: add systemd user services for backup --- systemd/backup.service | 7 +++++++ systemd/backup.timer | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100644 systemd/backup.service create mode 100644 systemd/backup.timer (limited to 'systemd') 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 -- cgit v1.2.3