From e9dc4c1090abb01317847c417b75d3960f3da34d Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Fri, 3 Feb 2023 14:39:07 -0600 Subject: only install platform-appropriate configs based on uname --- systemd/backup.service | 7 ------- systemd/backup.timer | 9 --------- systemd/linux/backup.service | 7 +++++++ systemd/linux/backup.timer | 9 +++++++++ 4 files changed, 16 insertions(+), 16 deletions(-) delete mode 100644 systemd/backup.service delete mode 100644 systemd/backup.timer create mode 100644 systemd/linux/backup.service create mode 100644 systemd/linux/backup.timer (limited to 'systemd') diff --git a/systemd/backup.service b/systemd/backup.service deleted file mode 100644 index c1adfde..0000000 --- a/systemd/backup.service +++ /dev/null @@ -1,7 +0,0 @@ -[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 deleted file mode 100644 index b7815d6..0000000 --- a/systemd/backup.timer +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=Run backup every four hours - -[Timer] -OnCalendar=*-*-* 0/4:15 -Persistent=true - -[Install] -WantedBy=timers.target 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 -- cgit v1.2.3