Simple, configuration-driven backup software for servers and workstations https://torsion.org/borgmatic/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
522B

  1. [Unit]
  2. Description=borgmatic backup
  3. Wants=network-online.target
  4. After=network-online.target
  5. ConditionACPower=true
  6. [Service]
  7. Type=oneshot
  8. # Lower CPU and I/O priority.
  9. Nice=19
  10. CPUSchedulingPolicy=batch
  11. IOSchedulingClass=best-effort
  12. IOSchedulingPriority=7
  13. IOWeight=100
  14. Restart=no
  15. LogRateLimitIntervalSec=0
  16. # Delay start to prevent backups running during boot.
  17. ExecStartPre=sleep 1m
  18. ExecStart=systemd-inhibit --who="borgmatic" --why="Prevent interrupting scheduled backup" /root/.local/bin/borgmatic --syslog-verbosity 1