summaryrefslogtreecommitdiff
path: root/borgBackup.service
diff options
context:
space:
mode:
Diffstat (limited to 'borgBackup.service')
-rw-r--r--borgBackup.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/borgBackup.service b/borgBackup.service
new file mode 100644
index 0000000..fa08c6a
--- /dev/null
+++ b/borgBackup.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Borg daily backup
+
+[Service]
+Type=simple
+Nice=19
+IOSchedulingClass=2
+IOSchedulingPriority=7
+ExecStartPre=-/usr/bin/borg break-lock /mnt/bak/borg
+ExecStart=-/etc/systemd/system/borgAuto.sh
+User=st33v
+Group=st33v