通过网络在linux系统间传输文件的方法:
-----------------------------------------------------------------------------------------------------------------------------
smbmount
nfs
scp
nc
ftp
nc最快(如下)..
------------------------------------------------------------------------------------------------------------------------
a机
$ tar cf - directory| nc -l -p 5555
b机
nc a_ip 5555 | tar xf -
a-_ip换成a机的ip地址..
ssh方式:
------------------------------------------------------------------------------------------------------------------------
直接在B机器执行一下指令
ssh xfcsy211.fc.hp.com tar -cvf - /sw_package/OMUE-2.00|tar -xvf
-
把这台机器上的那个目录copy到B机器的对应目录
Copying files using scp/SSH and tarIf you need to copy data from
one computer to other one, specially if you copy big volume of
data, it's much faster to use tar to compress data before sending
them over SSH connection.
Here's an example how it could be done:
tar czf - /path/files-to-copy | ssh user@remotehost "cat
> /path/data.tgz"
It creates archive data.tgz at /path.