netcat

From Devpit
Jump to: navigation, search

On the receiver:

netcat -l -p 1234 -w 10 | tar -xpzvC / 

From the sender:

tar -cpzv /sbin /var | netcat hostname 1234 -w 1