[svlug] Consider my mini-HOWTO

J C Lawrence claw at kanga.nu
Sat Mar 17 11:03:02 PST 2001

On Sat, 17 Mar 2001 00:11:48 -0800 
Aaron Lehmann <aaronl at vitelus.com> wrote:

> While on the topic, tar is great over netcat. Ever wanted to
> quickly transfer directory tree(s) from one machine to another,
> preserving permissions and symlinks? Run nc -l -p 7777 | tar xzf -
> on the destination and tar -czf <dirs> | <destmachine> 7777 on the
> uploading machine. The 7777 can be replaced with any port number
> that you are priviledged to use. This is all from memory so I
> could be wrong. Tar over netcat seems much faster than scp. I'd
> guess that it beats FTP too, especially since tar gives you the
> compression for free.

tar c <dir> | ssh user at otherbox " ( cd /some/dir ; tar xvf - ) "

J C Lawrence                                       claw at kanga.nu
---------(*)                          http://www.kanga.nu/~claw/
--=| A man is as sane as he is dangerous to his environment |=--

More information about the svlug mailing list