On Wed, 01 Dec 2004 18:47:51 +0200, Roman Melihhov <roman(a)blakout.net> wrote:
I want to mounts new hard drive as a /home, but how do I copy files
from
old /home with permissions and ownership preserved cp -Rv * would copy
recursively, but how to preserve ownership and permissions on files.
I've always used find and cpio to copy large directory trees:
$ cd <src>
$ find . -depth -print | cpio -pdmv <dest>
filling in the appropriate pathnames for <src> and <dest>.
-Mark.