diff options
| author | Sam Scholten | 2025-10-22 14:12:20 +1000 |
|---|---|---|
| committer | Sam Scholten | 2025-10-22 15:32:14 +1000 |
| commit | eded676575e6ef6150235b71d34ec4612f1a7bfb (patch) | |
| tree | 3a82e1b91d3d6f09ec906d02c8367297a0751279 /systemd/restic-backup.service | |
| parent | 271b8d82b129b0818cf767e7c8245976f6422b50 (diff) | |
| download | drestic-1.1.tar.gz drestic-1.1.zip | |
- 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/restic-backup.service')
| -rw-r--r-- | systemd/restic-backup.service | 7 |
1 files changed, 4 insertions, 3 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 |
