summaryrefslogtreecommitdiff
path: root/systemd/restic-backup.service
blob: 0c9ae2ae5e88e94ae4a0f9cf3a9d89ad60ee4c4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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