From c17901f484efaff6fbfc68f22273c31560dcc174 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 28 Mar 2023 05:15:08 -0700 Subject: add systemd unit files note to self: edit later to configure sandboxing and scheduling --- systemd/backomp.service | 5 +++++ systemd/backomp.timer | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 systemd/backomp.service create mode 100644 systemd/backomp.timer (limited to 'systemd') diff --git a/systemd/backomp.service b/systemd/backomp.service new file mode 100644 index 0000000..6ab7163 --- /dev/null +++ b/systemd/backomp.service @@ -0,0 +1,5 @@ +[Unit] +Description=Automated rotating snapshots using rsync + +[Service] +ExecStart=backomp /etc/backomp.conf diff --git a/systemd/backomp.timer b/systemd/backomp.timer new file mode 100644 index 0000000..6a0b8ab --- /dev/null +++ b/systemd/backomp.timer @@ -0,0 +1,8 @@ +[Unit] +Description=Hourly automated rotating snapshots using rsync + +[Timer] +OnCalendar=hourly + +[Install] +WantedBy=timers.target -- cgit v1.2.3-70-g09d2