linux scp和rsyc限速传输
2015-12-22 17:22
507 查看
一、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
rsync 百度百科
http://baike.baidu.com/link?url=_LyHRVDVPyMwgtfJTN2ntXo7pQteQwPf_3gPqy3ptk7V4UQ7hYpLeY4zKa4msDdmCxZ64WdxlemghviSPagbw_
#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
rsync 百度百科
http://baike.baidu.com/link?url=_LyHRVDVPyMwgtfJTN2ntXo7pQteQwPf_3gPqy3ptk7V4UQ7hYpLeY4zKa4msDdmCxZ64WdxlemghviSPagbw_
相关文章推荐
- 如何在使用 scp 命令时递归地排除文件
- ssh,scp自动登陆的实现方法
- linux下ssh安装与scp命令使用详解
- expect实现单台、多台服务器批量scp传输文件
- linux中scp命令和scp命令用法大全
- scp命令详解(全)
- linux使用scp命令备份文件 scp拷贝文件
- 在Linux下用scp复制文件无需输入密码的技巧
- ssh 命令行操作
- 不输密码使用scp
- Scp
- scp
- 手工删除AD RMS SCP
- 在Linux下远程使用scp拷贝文件
- scp
- linux下scp命令详解
- SCP ssl 服务器
- linux scp/rsync 文件带有冒号问题
- scp无密码复制
- scp命令详解