Date: Thu, 21 Aug 2003 12:30:05 -0700 From: Pat Lashley <patl+freebsd@volant.org> To: freebsd-questions@freebsd.org Subject: Copying an entire tree Message-ID: <4094160000.1061494205@mccaffrey.phoenix.volant.org>
next in thread | raw e-mail | index | archive | help
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.) cp -r Copies hardlinked files as separate files cpio Doesn't preserve flags pax Doesn't preserve flags dump Only works on entire filesystems If it matters, I'm particularly interested in doing this on RELENG_5_1; but a solution that works in 4-STABLE would also be appreciated. Thanks, -Pat Curiosity is a willing, a proud, an eager confession of ignorance. - Leonard Rubenstein
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4094160000.1061494205>