Copying home directories after install/upgrade
Alex Beamish
talexb-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Sun Dec 19 18:36:19 UTC 2004
On Sun, 19 Dec 2004 13:13:12 -0500, James Knott <james.knott-bJEeYj9oJeDQT0dZR+AlfA at public.gmane.org> wrote:
> 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.
OK, thanks, that's for the low level 'copy these files here' part --
but I'm also interested in finding out if Mandrake's going to be upset
that I overwrote the new version of some file in a user's directory
with an older version.
Alex
--
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