11 Sep

nc: transfer files via network

On destination host :

cd /dir_to_receive 
nc -l 4747 | tar -xvf - 

On source host:

cd /dir_to_send
tar c /dir_to_send | nc destination_host 4747


Leave a Reply

Your email address will not be published. Required fields are marked *