免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: syzxlyx
打印 上一主题 下一主题

如何加快文件copy速度? [复制链接]

论坛徽章:
0
11 [报告]
发表于 2009-05-05 18:24 |只看该作者

回复 #1 syzxlyx 的帖子

如果有两个网卡,可以考虑网卡的bond功能

论坛徽章:
0
12 [报告]
发表于 2009-05-05 23:26 |只看该作者
用qq传速度如何?
我想知道用qq传速度快,还是mount速度快

论坛徽章:
0
13 [报告]
发表于 2009-05-06 09:54 |只看该作者
是异地么?

建议:
http://www.riverbed.com.cn/solutions/backup.htm
wds广域网加速解决方案

加速复制和备份-更快的 wan、网络备份,更好的数据保护

论坛徽章:
0
14 [报告]
发表于 2009-05-06 11:30 |只看该作者
原帖由 emmoblin 于 2009-5-5 23:26 发表
用qq传速度如何?
我想知道用qq传速度快,还是mount速度快

qq确实很猛。

论坛徽章:
0
15 [报告]
发表于 2009-05-06 11:47 |只看该作者
用dd呢?

论坛徽章:
0
16 [报告]
发表于 2009-05-06 13:07 |只看该作者
FTP应该比较适合

论坛徽章:
1
2015年亚冠纪念徽章
日期:2015-11-03 10:11:03
17 [报告]
发表于 2009-05-06 13:23 |只看该作者
网上看到一篇文章,说用netcat
All good ideas come out of necessity. We were cloning an instance of Oracle Financials from one server to another. There are a LOT of files under < 1k and the copy takes forever. Yesterday the copy was kicked off using SCP - there was 39GBs to copy over a gigabit switch. This should have been less than 10 minutes but actually took over 8 hours because of all the small files. The copy failed and we needed to fix the problem and copy it a lot faster (30 minutes) today.

After clearing up 10 GBs of log files, we were left with hundreds of thousands of small files that were going to slow us down. We couldn’t tarball the file because of a lack of space on the source server. I started searching around and found this nifty tip that takes our encryption and streams all the files as one large file:

This requires netcat on both servers.

Destination box: nc -l -p 2342 | tar -C /target/dir -xzf -
Source box: tar -cz /source/dir | nc Target_Box 2342

It’s been about 4 minutes and I’m already 1/3 of the way done!

论坛徽章:
0
18 [报告]
发表于 2009-05-06 13:56 |只看该作者
对于海量小文件的话,最合适的还是文件系统级别的dump/restore, 其他方法涉及到文件操作的基本上都不可行

论坛徽章:
0
19 [报告]
发表于 2009-05-06 14:26 |只看该作者
学习。。。关注。。。

论坛徽章:
0
20 [报告]
发表于 2009-05-06 15:34 |只看该作者
http://www.itpub.net/showthread. ... 812&pagenumber=

a机
$ tar cf - win98 | nc -l -p 5555

b机
nc a_ip 5555 | tar xf -

a_ip换成a机的ip地址.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP