Professional Web Applications Themes

Move all user setting - Linux / Unix Administration

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 ...

  1. #1

    Default Move all user setting

    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

    mia456789@yahoo.com.hk Guest

  2. #2

    Default Re: Move all user setting

    com.hk wrote: 

    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
    Michael Guest

  3. #3

    Default Re: Move all user setting

    On 14 May 2005 07:08:50 -0700, com.hk <com.hk> wrote: 

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

    That question is too vague to be able to answer.

    Dave Guest

Similar Threads

  1. Setting Focus in a User Control
    By jdp in forum ASP.NET Building Controls
    Replies: 1
    Last Post: March 16th, 01:56 PM
  2. Setting the User Agent
    By Andrew in forum PHP Development
    Replies: 3
    Last Post: June 17th, 03:38 AM
  3. User Control - setting properties
    By John Carnahan in forum ASP.NET Building Controls
    Replies: 2
    Last Post: May 3rd, 10:50 PM
  4. Setting criteria in Lingo to move to marker
    By KrisCC in forum Macromedia Director Lingo
    Replies: 2
    Last Post: February 21st, 06:51 PM
  5. Move user profile
    By Andy in forum Linux / Unix Administration
    Replies: 0
    Last Post: July 14th, 07:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139