summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorSam Scholten2025-10-22 14:12:20 +1000
committerSam Scholten2025-10-22 15:32:14 +1000
commiteded676575e6ef6150235b71d34ec4612f1a7bfb (patch)
tree3a82e1b91d3d6f09ec906d02c8367297a0751279 /systemd
parent271b8d82b129b0818cf767e7c8245976f6422b50 (diff)
downloaddrestic-1.1.tar.gz
drestic-1.1.zip
Release v1.1.0: Critical multi-device fixes for small VPS instancesv1.1.0v1.1
- Fix memory swap configuration (allow 1G swap) - Add prune coordination (2-4 AM window with jitter) - Add lock retry settings for robustness - Increase rclone bandwidth to 2M - Memory limits increased to 512M
Diffstat (limited to 'systemd')
-rw-r--r--systemd/restic-backup.service7
-rw-r--r--systemd/restic-check.service7
2 files changed, 8 insertions, 6 deletions
diff --git a/systemd/restic-backup.service b/systemd/restic-backup.service
index 315ce0e..0e2e411 100644
--- a/systemd/restic-backup.service
+++ b/systemd/restic-backup.service
@@ -8,9 +8,10 @@ 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
-# Memory limits to prevent OOM on VPS
-MemoryMax=500M
-MemorySwapMax=500M
+Environment="HOME=/root"
+# Memory limits to prevent OOM on VPS (allow swap for prune operations)
+MemoryMax=512M
+MemorySwapMax=1G
[Install]
WantedBy=timers.target
diff --git a/systemd/restic-check.service b/systemd/restic-check.service
index e840159..0892554 100644
--- a/systemd/restic-check.service
+++ b/systemd/restic-check.service
@@ -8,9 +8,10 @@ Type=oneshot
# ExecStart path will be replaced by setup.sh during installation
ExecStart=/path/to/be/replaced/restic_check.sh
# Environment variable will be set by setup.sh based on scope
-# Memory limits to prevent OOM on VPS
-MemoryMax=500M
-MemorySwapMax=500M
+Environment="HOME=/root"
+# Memory limits to prevent OOM on VPS (allow swap for safety)
+MemoryMax=512M
+MemorySwapMax=1G
[Install]
WantedBy=timers.target