Unix administration - Move all user setting

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > May 2005 > Move all user setting





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Move all user setting
mia456789@yahoo.com.hk

2005-05-14, 1:23 pm

I have a new server ( host A ) and a existing server ( host B ) , I
will move all data from host A to host B , could suggest what is the
best method to move all the user data including /etc/passwd .
/etc/shadow , /etc/group , ~userid/.bash_profile , /home , how to make
the user can use the same password after move the server ? thx

I remember that linux has a command can "save" the setting in
/etc/passwd , /etc/grooup & /etc/shadow , but not sure what is the
command , could someone can advise ? thx

Michael Trausch

2005-05-14, 1:23 pm

mia456789@yahoo.com.hk wrote:
> I have a new server ( host A ) and a existing server ( host B ) , I
> will move all data from host A to host B , could suggest what is the
> best method to move all the user data including /etc/passwd .
> /etc/shadow , /etc/group , ~userid/.bash_profile , /home , how to make
> the user can use the same password after move the server ? thx
>
> I remember that linux has a command can "save" the setting in
> /etc/passwd , /etc/grooup & /etc/shadow , but not sure what is the
> command , could someone can advise ? thx
>


mkdir /tmp/migrate
cd /tmp/migrate
mkdir etc
cp /etc/passwd /etc/group /etc/shadow ./etc/
tar cjvvf /home homefs.tar.bz2
tar cvvf migration.tar *

Burn this to a CD (if larger then a CD then split the migration tarball
up so that it will, or transfer it over the network. Then, on the new
machine:

mkdir /tmp/migrate
cd /tmp/migrate
tar xvvf /path/to/migration.tar
cp etc/* /etc
tar xjvvf honefs.tar.bz2 /home

And you've migrated all of your users as well as their data.

- Mike
Dave Hinz

2005-05-15, 8:35 am

On 14 May 2005 07:08:50 -0700, mia456789@yahoo.com.hk <mia456789@yahoo.com.hk> wrote:
> I have a new server ( host A ) and a existing server ( host B ) , I
> will move all data from host A to host B , could suggest what is the
> best method to move all the user data including /etc/passwd .
> /etc/shadow , /etc/group , ~userid/.bash_profile , /home , how to make
> the user can use the same password after move the server ? thx


Look into dump/restore, or tar (with preserve), or rsync, for 3
workable and frequently used methods.

> I remember that linux has a command can "save" the setting in
> /etc/passwd , /etc/grooup & /etc/shadow , but not sure what is the
> command , could someone can advise ? thx


That question is too vague to be able to answer.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com