rsync speed limit of prevents rsync from consuming bandwidth
- 2020-05-15 02:52:20
- OfStack
Some machine rooms will limit the flow of machines. In order not to touch the bottom line, you should pay attention when using scp and rsync.
In order to avoid the phenomenon that your scp or rsync will be cut off due to the lazy and unscrupulous OPS setting up the firewall, we must implement a fixed current limiting measure for our data transmission. It is better to be 1 point slow than to be pinched. Therefore (limited to 1M Bytes/s) :
scp-l 10000 your account @remote machine or rsync is (limited to 60k Bytes/s) :
rsync
The speed limit is simple, just add a parameter to bwlimit, what is the value of k Bytes/s
For example: limited to 1000k Bytes/s) :
rsync -auvz --progress --delete --bwlimit=1000 The remote file The local file
rsync -auvz --progress --delete --bwlimit=1000 The local file The remote file
Done!