borgmatic-user.service 544 B

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