Thursday, September 1, 2011

Fastest way of transferring files between 2 server's over network

Below are file transfer tips from the geek..

Fastest way of transferring files between 2 server's over network

-- SCP : (20MB/sec)
-- FTP : requires ftp installed id/password  : 40MB/sec
-- NetCAT : might work if netcat is installed.  : 60MB/sec       

   source : tar -cvzf /dir/ |netcat -l 7777
   client :  netcat source_ip:7777 |tar -xvzf path
-- Using Python / WGet : Ninja Master : 80MB/sec

Server:
 # cd $folder_have the file
 # Start python webserver with this command. 
 python -m SimpleHTTPServer
Client : 
  wget -c http://x.x.x.239:8000/$file

-c will recover from a file break if something broke half way