[Sussex] Mail for Nik

sussex at welikegoats.com sussex at welikegoats.com
Tue Apr 12 12:36:37 UTC 2005


On Tue, 12 Apr 2005 steve at dobson.org wrote:

> Richie
>
> 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. Also, I don't really see the difference between this and cp -a
src-dir dst-dir ...




More information about the Sussex mailing list