sender:

tar c files | nc -w 10 -l -p 12345

receiver:

nc -w 10 sender\_ip 12345 | tar xvfp -