borg icon indicating copy to clipboard operation
borg copied to clipboard

pv-wrapper doesn't work as expected to limit bandwidth

Open jonathanmmm opened this issue 7 months ago • 4 comments

HI, I tried the recommended pv-wrapper (https://github.com/borgbackup/borg/issues/661). I put it at some location (not /usr/bin) and made it executable and named it pv-wrapper.sh. I then put in as the RATE 200k or 500k and linked it via export BORG_RSH The download speed was a lot greater. It may have been fine at create but after that came prune and after that info command, so either of these may have ignored the wrapper.

jonathanmmm avatar May 16 '25 04:05 jonathanmmm

Can't help with that as I don't use it. Maybe the guy who originally suggested this method can?

borg has also a built-in way to limit bw usage (IIRC only for upload to repo), can you try that?

ThomasWaldmann avatar May 16 '25 07:05 ThomasWaldmann

I’m using the following configuration in my $HOME/.ssh/config file:


Host borghost
   ProxyCommand pv -qL 9M | nc %h %p | pv -qL 9M

This setup limits the bandwidth in both directions to approximately 72 Mbps, and it works perfectly here on Fedora.

HTH, Jorge

Jorge-Fabregas avatar May 16 '25 16:05 Jorge-Fabregas

So, are our docs wrong / not working? Would be great if you could find out and file a PR improving them, if necessary.

ThomasWaldmann avatar May 17 '25 07:05 ThomasWaldmann

ping @Jorge-Fabregas @jonathanmmm

ThomasWaldmann avatar Nov 11 '25 10:11 ThomasWaldmann