博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
scp与rsync限速
阅读量:4622 次
发布时间:2019-06-09

本文共 994 字,大约阅读时间需要 3 分钟。

一/scp限速1M
#scp -l 1000 文件名  账号@远程机器IP 此时的传输速率就是1M/8=100K左右
二/rsync是(限制为 100k Bytes/s):
#rsync -auvzP--bwlimit=100 本地的文件 远程的文件   参数说明:    v:详细提示   a:以archive模式操作,复制目录、符号连接,等价于 -rlptgoD 。   z:压缩   u:只进行更新,防止本地新文件被重写,注意两者机器的时钟的同时    P:是综合了--partial --progress两个参数,       所以此时的rsync支持了断点续传

[liujianzuo@ow2 201512]$ rsync -avz --bwlimit=500 -e 'ssh -p10001' 2015-12-01-access_wap.log ffff@4.5.2.42:/root/log_wap

The authenticity of host '[124.205.209.42]:10001 ([124.205.209.42]:10001)' can't be established.
RSA key fingerprint is 33:61:43:8a:ca:34:3c:f0:56:45:1a:20:7f:0e:b0:8b.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[124.205.209.42]:10001' (RSA) to the list of known hosts.
root@124.205.209.42's password:
sending incremental file list
2015-12-01-access_wap.log

sent 13,951,993 bytes received 34 bytes 416,478.42 bytes/sec

total size is 172,036,811 speedup is 12.33
[liujianzuo@ow2 201512]$

转载于:https://www.cnblogs.com/liujianzuo888/p/5013073.html

你可能感兴趣的文章
理解JavaScript中的“this”
查看>>
今天研究了一下 windows特有的 完成端口 IOCP 重叠IO端口 ,记录下它与普通socket的区别...
查看>>
关于TLBB 客户端UI界面修改几个定义了解
查看>>
使用awstat分析Nginx的访问日志
查看>>
leetCode-Best Time to Buy and Sell Stock II
查看>>
leetCode-Two Sum II - Input array is sorted
查看>>
Mysql 导入数据的一种方法
查看>>
四则运算-安卓版
查看>>
PowerDesigner如何导出表到word的方法
查看>>
jquery后加Dom绑定事件
查看>>
中国最牛逼的四大软件
查看>>
首页调取二级、三级栏目
查看>>
IOS数据持久化的四种方式
查看>>
解决java compiler level does not match the version of the installed java project facet
查看>>
使用NPOI将多张图片导入execl
查看>>
spring IOC容器实例化Bean的方式与RequestContextListener应用
查看>>
银行业务模拟
查看>>
Monkey测试
查看>>
[NOIP 2013普及组 No.1] 计数问题
查看>>
scrapy爬虫资料汇总篇
查看>>