[Sussex] Mail for Nik

Simon Huggins huggie at earth.li
Tue Apr 12 12:43:25 UTC 2005


Salut LUG!

On Tue, Apr 12, 2005 at 12:36:24PM +0000, sussex at welikegoats.com wrote:
> On Tue, 12 Apr 2005 steve at dobson.org wrote:
> > On Tue, Apr 12, 2005 at 01:25:52PM +0100, Richie Jarvis wrote:
> > > Been trying to remember that nice tar statement you advocated at the
> > > last moot to copy dirs over - can you send it to me please?
> > He didn't get it right on the slide, IIRC, but here is my version that
> > works:
> >
> >   (cd <src-dir> && tar cf - .) | (cd <dst-dir> && tar xcf -)
> Well, I wouldn't use compression, since you are never saving the tar
> anywhere.

They aren't.

> Also, I don't really see the difference between this and cp -a src-dir
> dst-dir ...

Because the | could be | nc someserver 12345 and the other end could be
nc -l -p 12345 | tar ... or something equally twisted.

Simon.

-- 
oOoOo         Le doute est le commencement de la sagesse.          oOoOo
 oOoOo                                                            oOoOo
  oOoOo                                                          oOoOo




More information about the Sussex mailing list