Sunday, November 27, 2011

nc or NetCat how to ? Transfer Large files over network...

nc or NetCat how to ?  Transfer Large files over network...

source server 
#cat gd1.tgz | nc -l 5678
 
Destination  server 
#nc 10.28.140.106 5678 > gd1.tgz
 
On Destination Server:
#watch -n 1 "du -sh gd1.tgz"

rsync with delete option and different ssh port

How to rsync e.g PIPELINE dir from Source to Destination? #rsync -avzr   --delete-before  -e "ssh -p $portNumber"  /local...