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