blob: 259b5d83a5e1959b0ed5ec3c2d7b2b4403ef420d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
[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 for restic configuration
Environment="RESTIC_ENV_FILE=/path/to/be/replaced"
# HOME will be set by setup.sh for system scope only
# Memory limits to prevent OOM on VPS (allow swap for prune operations)
MemoryMax=512M
MemorySwapMax=1G
[Install]
WantedBy=timers.target
|