/home/users as new mount
Mark Wilkinson
kremvax at gmail.com
Wed Dec 1 16:54:57 UTC 2004
On Wed, 01 Dec 2004 18:47:51 +0200, Roman Melihhov <roman at 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.
More information about the fedora-list
mailing list