Initial commit; base scripting and systemd user event code for borg based backup

This commit is contained in:
2026-07-10 12:20:13 +02:00
commit ffe3c354be
12 changed files with 984 additions and 0 deletions
@@ -0,0 +1,13 @@
[Unit]
Description=Back up mounted Nextcloud folder to Synology with Borg
Documentation=man:borg(1)
[Service]
Type=oneshot
ExecStart=%h/.local/bin/nextcloud-borg-backup backup
TimeoutStartSec=12h
Nice=10
IOSchedulingClass=best-effort
IOSchedulingPriority=6
Environment=LANG=C.UTF-8
Environment=LC_ALL=C.UTF-8
+11
View File
@@ -0,0 +1,11 @@
[Unit]
Description=Daily Nextcloud Borg backup timer
[Timer]
OnCalendar=*-*-* 03:15:00
Persistent=true
RandomizedDelaySec=30m
Unit=nextcloud-borg-backup.service
[Install]
WantedBy=timers.target