[K12OSN] Copying Files

Doug Simpson simpsond at leopards.k12.ar.us
Fri Jun 23 13:27:05 UTC 2006

Just remember also that if you are changing versions, you can't just copy 
passwd group and shadow verbatim.

You should get to the point in those files where the non-system users 
start (uslally like 500) and just copy from there on into the new one on 
the new server. 

This is one reason I use webmon for this. It handles that all for you. . .

If you use webmin, in the export function, you can tell it to export users 
with IDs 500 and above.

Doug Simpson
Technology Specialist
DeQueen Public Schools
DeQueen, AR 71832
simpsond at leopards.k12.ar.us
Tux for President!

On Fri, 23 Jun 2006, Petre Scheie wrote:

> Les Mikesell wrote:
> > On Thu, 2006-06-22 at 18:30, Mark Cockrell wrote:
> >> Hello All,
> >>     I have what I hope will be an easy question for the more experienced 
> >> among us.  I'm setting up a new server and I want to move the /home from 
> >> the old one to the new one.  What would be the best/easiest way to move 
> >> all the files and folders to the new machine while preserving ownership 
> >> and permissions?
> > 
> > If they are both on the network at once, from the old machine:
> > cd /home
> > rsync -essh -av . newmachine:/home
> > 
> The wrinkle is that since he's moving to a new machine, he probably doesn't have all the 
> user IDs & PWs setup.  If you copy the /etc/passwd, /etc/group, and /etc/shadow from the 
> old box to the new one, then all the home directories will keep their ownership correct. 
>   Otherwise, if you create, say, bob on the new machine and it ends up with UID 517, but 
> it was UID 654 on the old box, /home/bob won't be accessible by bob on the new box.
> Petre
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>

More information about the K12OSN mailing list