Need to transfer a directory to another server but do not have FTP or SCP access? Well this little trick will help out using the netcat utility. On the destination server run:
nc -l -p 1234 | uncompress -c | tar xvfp -
And on the sending server run:
tar cfp - /some/dir | compress -c | nc -w 3 [destination] 1234
Now you can transfer directories without FTP and without needing root access.
(Another tip from "tips all geeks should know")
Last updated on 2009-10-20 14:28:51 -0800, by Shalom CraimerBack to Tech Journal