borgmatic-user.service 499 B

123456789101112131415
  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. Restart=no
  9. # Prevent rate limiting of borgmatic log events. If you are using an older version of systemd that
  10. # doesn't support this (pre-240 or so), you may have to remove this option.
  11. LogRateLimitIntervalSec=0
  12. # Delay start to prevent backups running during boot.
  13. ExecStartPre=sleep 1m
  14. ExecStart=/root/.local/bin/borgmatic --verbosity -2 --syslog-verbosity 1