diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2023-03-28 05:15:08 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2023-03-28 05:15:08 -0700 |
commit | c17901f484efaff6fbfc68f22273c31560dcc174 (patch) | |
tree | 431615475ed473608191dd2fa6a49b0108cee8c9 /systemd | |
parent | d6c445011897f96ea4f28c936a1d4467a7dd03cb (diff) | |
download | backomp-c17901f484efaff6fbfc68f22273c31560dcc174.tar.gz backomp-c17901f484efaff6fbfc68f22273c31560dcc174.tar.xz |
add systemd unit files
note to self: edit later to configure sandboxing and scheduling
Diffstat (limited to 'systemd')
-rw-r--r-- | systemd/backomp.service | 5 | ||||
-rw-r--r-- | systemd/backomp.timer | 8 |
2 files changed, 13 insertions, 0 deletions
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 |