linux scp和rsyc限速传输

1、scp限速1M url

  #scp -l 1000 文件名  帐号@远程机器IP orm

  此时的传输速率就是1M/8=100K左右 ci

  2、rsync是(限制为 100k Bytes/s): get

  #rsync -auvzP--bwlimit=100 本地的文件 远程的文件 it

 

  参数说明:  www.2cto.com   form

  v:详细提示 百度

  a:以archive模式操做,复制目录、符号链接,等价于 -rlptgoD 。 sed

  z:压缩 软件

  u:只进行更新,防止本地新文件被重写,注意二者机器的时钟的同时 date

  P:是综合了--partial --progress两个参数, 

  因此此时的rsync支持了断点续传 

 

机房之间传文件通常都担忧带宽占用太多,特别是在共用带宽的状况下。经常使用的两个软件均可以限速: 

  www.2cto.com  

scp能够加上 -l 参数: 

 

引用 

     -l limit 

             Limits the used bandwidth, specified in Kbit/s. 

  www.2cto.com  

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

rsync 百度百科

http://baike.baidu.com/link?url=_LyHRVDVPyMwgtfJTN2ntXo7pQteQwPf_3gPqy3ptk7V4UQ7hYpLeY4zKa4msDdmCxZ64WdxlemghviSPagbw_

相关文章
相关标签/搜索