From 92fade53f0e75b1d540cd54a21648ce97e2e88ad Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 20 Jun 2017 20:03:40 +0200 Subject: [PATCH] added borg service --- borg/.config/systemd/user/borg.service | 8 ++++++++ borg/.config/systemd/user/borg.timer | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100644 borg/.config/systemd/user/borg.service create mode 100644 borg/.config/systemd/user/borg.timer diff --git a/borg/.config/systemd/user/borg.service b/borg/.config/systemd/user/borg.service new file mode 100644 index 0000000..5f758b6 --- /dev/null +++ b/borg/.config/systemd/user/borg.service @@ -0,0 +1,8 @@ +[Unit] +Description=Borg Backup + +[Service] +ExecStart=/home/alrayyes/bin/backup.sh + +[Install] +WantedBy=default.target diff --git a/borg/.config/systemd/user/borg.timer b/borg/.config/systemd/user/borg.timer new file mode 100644 index 0000000..fe13959 --- /dev/null +++ b/borg/.config/systemd/user/borg.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Run borg daily + +[Timer] +OnBootSec=300m +OnUnitActiveSec=1d + +[Install] +WantedBy=timers.target