2022-09-25 17:27:04 +00:00
|
|
|
[Service]
|
|
|
|
CPUSchedulingPolicy=batch
|
|
|
|
ExecStart=/nix/store/00000000000000000000000000000000-systemd/bin/systemd-inhibit \
|
|
|
|
--who="borgmatic" \
|
2023-02-05 10:13:04 +00:00
|
|
|
--what="sleep:shutdown" \
|
2022-09-25 17:27:04 +00:00
|
|
|
--why="Prevent interrupting scheduled backup" \
|
|
|
|
@borgmatic@/bin/borgmatic \
|
|
|
|
--stats \
|
|
|
|
--verbosity -1 \
|
|
|
|
--list \
|
|
|
|
--syslog-verbosity 1
|
|
|
|
|
2022-10-23 20:52:22 +00:00
|
|
|
ExecStartPre=/nix/store/00000000000000000000000000000000-coreutils/bin/sleep 3m
|
2022-09-25 17:27:04 +00:00
|
|
|
IOSchedulingClass=best-effort
|
|
|
|
IOSchedulingPriority=7
|
|
|
|
IOWeight=100
|
|
|
|
LogRateLimitIntervalSec=0
|
|
|
|
Nice=19
|
|
|
|
Restart=no
|
|
|
|
Type=oneshot
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
ConditionACPower=true
|
|
|
|
Description=borgmatic backup
|