LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   transfering all users from one server to another (https://www.linuxquestions.org/questions/linux-newbie-8/transfering-all-users-from-one-server-to-another-440838/)

romel 05-02-2006 05:39 AM

transfering all users from one server to another
 
I want to transfer my all 500 user fom one server to another. what will eb the procedure.

Will I create a tar file of my home directory and then ftp that file to my new server..

pls help me with the proper tar and untar command...

cause I know
tar -xvf home.tar home/

is that alright..?

zulfilee 05-02-2006 06:08 AM

Copy the files /etc/passwd /etc/shadow /etc/group and /etc/sudoers
to the new server first.

Then take a back up as u said

tar -zcvpf home.tgz /home/

This tgz file can be untarred in the other server from root directory.
tar -zxvpf home.tgz -C /


All times are GMT -5. The time now is 11:04 AM.