机房之间传文件一般都担心带宽占用太多,特别是在共用带宽的情况下。常用的两个软件都可以限速:

scp可以加上 -l 参数:

引用
     -l limit
             Limits the used bandwidth, specified in Kbit/s.


rsync可以加上 --bwlimit 参数

引用
        -i, --itemize-changes       output a change-summary for all updates
            --log-format=FORMAT     output filenames using the specified format
            --password-file=FILE    read password from FILE
            --list-only             list the files instead of copying them
            --bwlimit=KBPS          limit I/O bandwidth; KBytes per second
            --write-batch=FILE      write a batched update to FILE
            --only-write-batch=FILE like --write-batch but w/o updating dest





原创内容如转载请注明:来自 阿权的书房
收藏本文到网摘
Tags: , ,
发表评论
表情
emotemotemotemotemotemotemotemotemotemotemotemotemot
emotemotemotemotemotemotemotemotemotemotemotemot
打开HTML 打开UBB 打开表情 隐藏
昵称   密码   游客无需密码
网址   电邮   [注册]
               

验证码 不区分大小写
 

阅读推荐

服务器相关推荐

开发相关推荐

应用软件推荐