Copying home directories after install/upgrade

James Knott james.knott-bJEeYj9oJeDQT0dZR+AlfA at public.gmane.org
Sun Dec 19 18:13:12 UTC 2004


Alex Beamish wrote:
> Hello,
> 
> I've just re-installed Mandrake 10 on my step-son's computer, and I
> want to copy his home directory from the small drive (6.4G, dual boot
> with Windows 98) where I originally installed it to the new drive
> (80G, Mandrake only). The previous installation was Mandrake 10
> Community which I tried unsuccessfully to upgrade to 10 -- I think it
> failed because there wasn't enough space.
> 
> I've managed to mount the drives with the old installation, but I
> guess what I really want to do is
> 
>   rm -fr /home/matt/*   # force, recursive (new location)
>   cp -apr /olda7/* /home/matt  # all files, protect
> permissions/ownership, recursive
> 
> I'm just not sure it's going to mess something up .. are there files
> that I shouldn't copy over, but leave from the original?

All you need is "cp -a", which includes the d, p & r options.
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list