直接scp传输
[root@zenoss29 zenoss29]# time scp MySQL-server-5.5.18-1.rhel5.i386.rpm MySQL-client-5.5.18-1.rhel5.i386.rpm root@124.108.10.30:/zenoss29/
MySQL-server-5.5.18-1.rhel5.i386.rpm 100% 52MB 12.9MB/s 00:04
MySQL-client-5.5.18-1.rhel5.i386.rpm 100% 17MB 8.5MB/s 00:02
real 0m6.549s
user 0m1.820s
sys 0m0.307s
tar压缩scp
[root@zenoss29 zenoss29]# time tar czf - MySQL-server-5.5.18-1.rhel5.i386.rpm MySQL-client-5.5.18-1.rhel5.i386.rpm | ssh root@124.108.10.30 "tar xzf - -C /zenoss29"
real 0m6.167s
user 0m7.081s
sys 0m0.639s
tar不压错scp
[root@zenoss29 zenoss29]# time tar cf - MySQL-server-5.5.18-1.rhel5.i386.rpm MySQL-client-5.5.18-1.rhel5.i386.rpm | ssh root@124.108.10.30 "tar xf - -C /zenoss29"
real 0m6.279s
user 0m1.924s
sys 0m0.161s
rsync
[root@zenoss29 zenoss29]# time rsync MySQL-server-5.5.18-1.rhel5.i386.rpm MySQL-client-5.5.18-1.rhel5.i386.rpm zenoss30:/zenoss29
real 0m6.495s
user 0m2.036s
sys 0m0.185s
rsync保留属性
[root@zenoss29 zenoss29]# time rsync -a MySQL-server-5.5.18-1.rhel5.i386.rpm MySQL-client-5.5.18-1.rhel5.i386.rpm zenoss30:/zenoss29
real 0m0.189s
user 0m0.012s
sys 0m0.007s
rsync压缩
[root@zenoss29 zenoss29]# time rsync -z MySQL-server-5.5.18-1.rhel5.i386.rpm MySQL-client-5.5.18-1.rhel5.i386.rpm zenoss30:/zenoss29
real 0m0.150s
user 0m0.013s
sys 0m0.005s
使用nc
[node1]time nc -l 12345 | tar -xf - > MySQL-server-5.5.18-1.rhel5.i386.rpm
[node2]tar -czf - MySQL-server-5.5.18-1.rhel5.i386.rpm | nc zenoss30 12345
阅读(1777) | 评论(0) | 转发(0) |