borgbase / ansible-role-borgbackup

Ansible role to set up Borg and Borgmatic
MIT License
221 stars 98 forks source link

Add setting for reduced NICE #52

Open m3nu opened 3 years ago

m3nu commented 3 years ago

I had a few cases where a VPS overloaded during a backup. Could be useful to run it with lower priority by adding this to CRON or setting the nice setting in the Systemd timer.

/usr/bin/nice -n 19 /usr/local/bin/borgmatic ...

witten commented 1 year ago

FYI this is currently set in borgmatic's systemd service file: https://projects.torsion.org/borgmatic-collective/borgmatic/src/branch/master/sample/systemd/borgmatic.service#L49

m3nu commented 1 year ago

I know. We are close to merging Systemd support in #112 . Then we can profit from this. Your file is in this PR too. 😀