我试图限制Rsync是通过指定--bwlimit选项使用的带宽,但它似乎并没有工作。我不知道我是不是做错了什么...:Rsync的极限传输速度不工作
最大可能的上传速度= 10兆/秒。我想的rsync限制到约50%:
rsync命令=
[~] # rsync --version
rsync version 3.0.7 protocol version 30
[~] # rsync -a --verbose --partial --bwlimit=500 -e 'ssh -p 2200 -i /share/ssh/id_dsa' [email protected]:/share/MD0_DATA/ /share/LocalData
结果=
============= ==================================================
:===============作为下面提供解0
[~] # ipkg install trickle
Installing trickle (1.06-3) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ts509/cross/unstable/trickle_1.06-3_i686.ipk
Installing libevent (2.0.16-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ts509/cross/unstable/libevent_2.0.16-1_i686.ipk
Configuring libevent
Configuring trickle
Successfully terminated.
[~] # trickle -d 500 rsync -a --verbose --partial -e 'ssh -p 2200 -i /share/ssh/id_dsa' [email protected]:/share/MD0_DATA/ /share/LocalData
trickle: Could not reach trickled, working independently: No such file or directory
receiving incremental file list
大,涓流工作得很好。非常感谢 ! – Daps0l 2012-04-09 08:39:36
对于任何人懒得去阅读man page时,KBPS是指每秒千字节,每秒千字节没有。谢谢你的提示,我总是引用你的答案的方式:) – arrayown 2013-11-09 14:47:15
10 Mbps的约等于1.2 MB /秒,所以这仍远高于500 KB /秒。 – UtahJarhead 2016-02-02 15:32:29