Copying an entire tree

Tillman Hodgson tillman at
Thu Aug 21 14:45:56 PDT 2003

On Thu, Aug 21, 2003 at 02:23:54PM -0700, Pat Lashley wrote:
> On Thursday, August 21, 2003 22:19:28 +0200 Nico Meijer 
> <nico.meijer at> wrote:
> >> Is there any simple clean way to copy an entire directory tree and
> >> preserve both the flags (like schg) AND hard links within the tree?
> >> (And, of course, preserve device special nodes, etc.)
> >
> > Have you looked at rsync?
> No, I hadn't thought of using rsync for a purely local copy.  But now
> that I've tried it, add it to the list of utilities that lose the flags.
> (I'm particularly interested in preserving the schg and nodump flags.)
> So far, the only thing I know of that seems to do everything right
> is cvsup.  But it's really a bit cumbersome to set up for a one-time
> copy.

cpdup, perhaps?



The ultimate question:  Why does life exist?  The answer:  For life's sake.
	- ANONYMOUS, thought to be of Zensunni origin

More information about the freebsd-questions mailing list