first commit

This commit is contained in:
Oliver Walter
2026-06-17 01:54:53 +02:00
commit 1ea0d846bb
15 changed files with 742 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
[Unit]
Description=Restic backup to TrueNAS
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
EnvironmentFile=/etc/restic/env
ExecStart=/usr/local/bin/restic-backup.sh
# Give restic a cache directory (avoids "no $HOME" warning)
CacheDirectory=restic
Environment=RESTIC_CACHE_DIR=/var/cache/restic
# Security hardening
PrivateTmp=true
NoNewPrivileges=true