Setting CPU and IO priority through borgmatic #337

Closed
opened 2020-06-26 04:01:40 +00:00 by Linux-cpp-lisp · 3 comments

What I'm trying to do and why

Sometimes it's nice to be able to run backups while working, but to do so, I would like to be able to set nice and ionice levels for borg. I could certainly just run borgmatic under nice/ionice, but it would be easier if those priorities could be configured in the borgmatic configuration file like everything else.

Is this possible?

Thanks!

#### What I'm trying to do and why Sometimes it's nice to be able to run backups while working, but to do so, I would like to be able to set `nice` and `ionice` levels for `borg`. I could certainly just run `borgmatic` under `nice`/`ionice`, but it would be easier if those priorities could be configured in the `borgmatic` configuration file like everything else. Is this possible? Thanks!
Owner

Thanks for filing this! If you're using systemd, this is included in the sample systemd configuration: https://projects.torsion.org/witten/borgmatic/raw/branch/master/sample/systemd/borgmatic.service

Does that work for your needs?

Related: #32

Thanks for filing this! If you're using systemd, this is included in the sample systemd configuration: https://projects.torsion.org/witten/borgmatic/raw/branch/master/sample/systemd/borgmatic.service Does that work for your needs? Related: #32
witten added the
question / support
label 2020-06-26 04:04:57 +00:00
Author

Thanks for the (very) quick response!

I haven't set up borgmatic with systemd yet, but I plan to, so this definitely solves the issue.

There seem to be similar settings available for launchd, so this technique should also work for macOS.

Thanks for the (very) quick response! I haven't set up `borgmatic` with `systemd` yet, but I plan to, so this definitely solves the issue. There seem to be [similar settings available](https://apple.stackexchange.com/questions/149086/what-is-the-best-practice-for-creating-a-daemon-with-launchd-that-runs-at-lower) for `launchd`, so this technique should also work for macOS.
Owner

Cool, I'm glad to hear that'll work for you.

Cool, I'm glad to hear that'll work for you.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#337
No description provided.