| 1 | [Unit] |
| 2 | Description=borgmatic backup |
| 3 | Wants=network-online.target |
| 4 | After=network-online.target |
| 5 | ConditionACPower=true |
| 6 | Documentation=https://torsion.org/borgmatic/ |
| 7 | |
| 8 | [Service] |
| 9 | Type=oneshot |
| 10 | Restart=no |
| 11 | # Prevent rate limiting of borgmatic log events. If you are using an older version of systemd that |
| 12 | # doesn't support this (pre-240 or so), you may have to remove this option. |
| 13 | LogRateLimitIntervalSec=0 |
| 14 | # Delay start to prevent backups running during boot. |
| 15 | ExecStartPre=sleep 1m |
| 16 | ExecStart=/root/.local/bin/borgmatic --verbosity -2 --syslog-verbosity 1 |