Re: /home/users as new mount

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 01 Dec 2004 18:47:51 +0200, Roman Melihhov <roman@xxxxxxxxxxx> 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.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux