*BSD News Article 77026


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!howland.erols.net!newsfeed.internetmci.com!EU.net!usenet2.news.uk.psi.net!uknet!usenet1.news.uk.psi.net!uknet!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@awfulhak.demon.co.uk (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Best way to copy directory trees
Date: 27 Aug 1996 14:11:10 +0100
Organization: Coverform Ltd.
Lines: 26
Message-ID: <4vus5e$ft@anorak.coverform.lan>
References: <ts-0108961559090001@mac.infodirekt.de> <gergDvH52n.6K9@netcom.com> <4vqhm8$ol7@herald.concentric.net>
NNTP-Posting-Host: localhost.coverform.lan
X-NNTP-Posting-Host: awfulhak.demon.co.uk
X-Newsreader: TIN [version 1.2 PL2]

Daniel Ts'o (dantso@cris.com) wrote:
: 	yes, I usually use cpio like above:

: 	find dir0 -print | cpio -pldumv dir1

: 	It maintains links, times, owners, etc. Smarter CPIO's can 
: maintain 
: device nodes, named pipes, etc. An advantage over the double tar 
: method is 
: that the data doesn't have to travel over a pipe, only filenames 
: are travel 
: over the pipe in the example above.
: 	However if it is a cross-machine copy, then I use tar, 
: since you have 
: to move the data across the two machines in some way. Much faster 
: than NFS:

: 	tar cf - . | rsh desthost "cd newdir; tar xf -"

What about

    pax -rw -p e . newdir

--
Brian <brian@awfulhak.demon.co.uk>
Don't _EVER_ lose your sense of humour....