[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> wrote on Monday, 17
March 2003 14:00:

> Hi,
> 
> I am trying to move the users home directories to a new hard disk as
> the current one is running out diskspace and it is the same physical
> disk having the linux OS also. How can the home directories can be
> moved to a new disk without disturbing the permissions ...

cd oldhome
cp -a * /newhome
(as root, obviously)
Note, "cp -a oldhome newhome" can get a bit messy
depending on whether newhome exists or not. Sometimes
you get an extra directory layer (I always pick the
wrong way first)

This is 
1. recursive
2. copies symlinks as such
3. preserves premissions/ownership
4. maintains hard links where possible.

There are other ways also, and I am not sure if any are more
sturdy than this for a simple disk-disk copy.

Cameron.



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to