diff options
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 |
