scp和rsync哪个快?

用事实说话!

从局域网的另一台机器复制一个2G的文件,两者表现如下:

rsync

time rsync -avz xingwang@'10.0.0.65':/data0/ibdata1.bak .
[email protected]'s password: 
receiving file list ... done
ibdata1.bak

sent 42 bytes  received 394687638 bytes  1392196.40 bytes/sec
total size is 2097152000  speedup is 5.31

real	4m43.107s
user	0m42.120s
sys	0m12.144s

scp

time rcp xingwang@'10.0.0.65':/data0/ibdata1.bak .
[email protected]'s password: 
ibdata1.bak                                                           100% 2000MB   8.9MB/s   03:44    

real	3m50.007s
user	0m29.948s
sys	0m33.652s


你可能感兴趣的:(scp和rsync哪个快?)