limit upload/download bandwidth

Bug #1291633 reported by hovis
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Duplicity
New
Undecided
Unassigned

Bug Description

It would be useful to have the option to restrict the bandwidth Duplicity uses when uploading/downloading. Ie, on a 10Mb line, restrict to 5Mb so the line is not saturated during a long backup.

One option when using scp:// used to be to add:-

--scp-command "scp -l 5120"

but this no longer works due to scp-command option being depreciated. Can a generic 'bandwidth limit' option be added?

Revision history for this message
Matt Williamson (mddubs) wrote :

Throttling would be a great addition for those of us uploading to S3 and other cloud hosts.

Revision history for this message
Matt Williamson (mddubs) wrote :

Found a workaround using trickle which seems to be just fine:

trickle -s -u 500 -d 100 duplicity ...

Revision history for this message
EliCoten (launchpad-elicoten) wrote :

Another workaround which I found useful after Googling this topic is WonderShaper https://github.com/magnific0/wondershaper
The advantage of WonderShaper over trickle is that it can adjust bandwidth limiting on the fly, which is particularly useful for a backup that takes days to complete; during the daytime when other users want to use the network you can apply throttling and then at night you can unthrottle it without interrupting Duplicity.

With trickle, if I'm not mistaken you'd have to stop Duplicity and then start it again with/without trickle to change it which causes Duplicity to start the backup again (although incremental mode can somewhat compensate for this, nevertheless its not ideal).

I was encountering a problem that whilst Duplicity unintentionally causing Denial of Service to all other users on the local network due to unintentionally swallowing all the network bandwidth. Further background: https://community.plus.net/t5/Broadband/Uploading-something-dramatically-affects-download/m-p/1531821#M322958

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.