borgbase / vorta

Desktop Backup Client for Borg Backup
https://vorta.borgbase.com
GNU General Public License v3.0
1.96k stars 130 forks source link

ionice+nice for backups on linux #285

Open RlndVt opened 5 years ago

RlndVt commented 5 years ago

Is your feature request related to a problem? Please describe. I want to issue run borg with a specified (io)niceness and nocache e.g.:

nocace ionice -n 7 nice borg [...]

Describe the solution you'd like

Have a option to specify commands to prepend to the borg command.

Related/other issues

96 #272 #274 all ask for adding additional commands/arguments to borg commands, but they all seem targeted to appending, instead of 'prepending'.

ThomasWaldmann commented 5 years ago

What's nocache for exactly?

RlndVt commented 5 years ago

Quoting from the GitHub:

The nocache tool tries to minimize the effect an application has on the Linux file system cache.[...]

Use case: backup processes that should not interfere with the present state of the cache.

So (an attempt is made such that) the disk cache is maintained while performing e.g. backup tasks to minimise impact on performance.

ThomasWaldmann commented 5 years ago

So we are talking about this: https://github.com/Feh/nocache

borg already has that fadvise-dontneed functionality built-in.

RlndVt commented 5 years ago

Oh that's fantastic.

So only ionice/nice, or is that also built in?

ThomasWaldmann commented 5 years ago

ionice is not built in (there is only some bw limiting for ssh: repos).

but guess ionice is system-specific (while fadvise is cross-platform).

Schroedingers-Cat commented 1 year ago

Why has this been closed? Is there a way to use Vorta for scheduling regular backups with lowest ioniceness and niceness? I haven't found an option in Vorta 0.8.9.

While I can set the niceness and ioniceness for borg from the terminal, these option have to be prefixed to borg create. The Vorta GUI only seems to allow postfixing.

real-yfprojects commented 1 year ago

Nice is only supported by Linux.

real-yfprojects commented 1 year ago

Maybe #379 can allow passing borg commands to other commands.

Schroedingers-Cat commented 1 year ago

Maybe #379 can allow passing borg commands to other commands.

The closest thing I could spot there was the suggestion for borg arguments, which I don't think would allow for setting niceness and ioniceness. Anything specific you were thinking of from that issue?