-
-
Notifications
You must be signed in to change notification settings - Fork 743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add bandwidth limit support #661
Comments
Limiting bandwidth can be accomplished with pipeviewer and a wrapper script. Install pipeviewer (pv) on ubuntu and most likely debian it's simply: Create a wrapper script: (I'll create it to
That done, add BORG_RSH env Now borg will be bandwidth limited. Nice thing about pv is that you can change rate-limit on the fly: I've used same setup with rsync where I was moving multi terabyte set of data and had to moderate bandwidth during office hours.
Test: source: 320M total
Original test with pipeviewer, but no rate-limit: |
could be added to faq. |
merged pr #705. |
Bumping an old issue here, I know, but that's a rather convoluted workaround for something that probably ought to live in borg. Plus, it would be useful to have separate throttling options for network, I/O, and compute. |
@ddevault if you have a specific problem related to this, please describe it in a new issue. |
This issue appears on the checkbox list in #5. It is attic issue: jborg/attic#103. I wasn't sure if we should be adding comments there or here.
The original issue requests that support be added to limit bandwidth.
trickle
was mentioned as an option. People said it wouldn't/didn't work since borg uses a pipe through ssh, while trickle works with sockets.I just wanted to report that if you are using borg with sshfs (i.e. backing up to rsync.net), then using trickle will work properly. You must call trickle when performing the ssh mount. So to limit bandwidth to 5 Mbps, you'd use:
The text was updated successfully, but these errors were encountered: