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