linux scp和rsyc限速傳輸

來源:互聯網
上載者:User


linux scp和rsyc限速傳輸 一、scp限速1M   #scp -l 1000 檔案名稱  帳號@遠程機器IP   此時的傳輸速率就是1M/8=100K左右   二、rsync是(限制為 100k Bytes/s):   #rsync -auvzP--bwlimit=100 本地的檔案 遠端檔案    參數說明:  www.2cto.com     v:詳細提示   a:以archive模式操作,複製目錄、符號串連,等價於 -rlptgoD 。   z:壓縮   u:只進行更新,防止本地新檔案被重寫,注意兩者機器的時鐘的同時   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 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.