From a7115770e9e377689d9996abe32a28e8db87429d Mon Sep 17 00:00:00 2001 From: Sam Scholten Date: Thu, 11 Sep 2025 16:06:10 +1000 Subject: init --- systemd/restic-backup.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 systemd/restic-backup.service (limited to 'systemd/restic-backup.service') diff --git a/systemd/restic-backup.service b/systemd/restic-backup.service new file mode 100644 index 0000000..0c9ae2a --- /dev/null +++ b/systemd/restic-backup.service @@ -0,0 +1,17 @@ +[Unit] +Description=Restic Daily Backup +Wants=network-online.target +After=network.target network-online.target + +[Service] +Type=oneshot +# ExecStart path will be replaced by setup.sh during installation +ExecStart=/path/to/be/replaced/restic_backup.sh +# Environment variable will be set by setup.sh based on scope +Environment="HOME=/root" +# Memory limits to prevent OOM on VPS +MemoryMax=500M +MemorySwapMax=500M + +[Install] +WantedBy=timers.target -- cgit v1.2.3