Copying an entire tree
Pat Lashley
patl+freebsd at volant.org
Thu Aug 21 12:30:18 PDT 2003
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
More information about the freebsd-questions
mailing list