More robust sample systemd service: boot delay, network dependency, lowered CPU/IO priority, etc (#205).
This commit is contained in:
parent
386979ebb4
commit
3846155d62
3 changed files with 20 additions and 2 deletions
4
NEWS
4
NEWS
|
@ -1,3 +1,7 @@
|
||||||
|
1.3.20.dev0
|
||||||
|
* #205: More robust sample systemd service: boot delay, network dependency, lowered CPU/IO
|
||||||
|
priority, etc.
|
||||||
|
|
||||||
1.3.19
|
1.3.19
|
||||||
* #219: Fix visibility of "borgmatic prune --stats" output.
|
* #219: Fix visibility of "borgmatic prune --stats" output.
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,21 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=borgmatic backup
|
Description=borgmatic backup
|
||||||
|
Wants=network-online.target
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/root/.local/bin/borgmatic
|
|
||||||
|
# Lower CPU and I/O priority.
|
||||||
|
Nice=19
|
||||||
|
CPUSchedulingPolicy=batch
|
||||||
|
IOSchedulingClass=best-effort
|
||||||
|
IOSchedulingPriority=7
|
||||||
|
IOWeight=100
|
||||||
|
|
||||||
|
Restart=no
|
||||||
LogRateLimitIntervalSec=0
|
LogRateLimitIntervalSec=0
|
||||||
|
|
||||||
|
# Delay start to prevent backups running during boot.
|
||||||
|
ExecStartPre=sleep 1m
|
||||||
|
ExecStart=systemd-inhibit --who="borgmatic" --why="Prevent interrupting scheduled backup" /root/.local/bin/borgmatic --syslog-verbosity 1
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -1,6 +1,6 @@
|
||||||
from setuptools import find_packages, setup
|
from setuptools import find_packages, setup
|
||||||
|
|
||||||
VERSION = '1.3.19'
|
VERSION = '1.3.20.dev0'
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
|
|
Loading…
Reference in a new issue