The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Restore Accounts After Reload

Discussion in 'General Discussion' started by moogle, Sep 29, 2008.

  1. moogle

    moogle Well-Known Member

    Joined:
    Apr 7, 2003
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    6
    The main hard drive with the paritions and /home have died on my machine. My backup drive apparently died as well.

    I'm still able to access the old drive (mounted as /old) and I need to know what to do to restore the accounts from there. What files do I need so that all the accounts, account settings, mysql, etc are restored?

    Using CentOS 5.2
     
  2. moogle

    moogle Well-Known Member

    Joined:
    Apr 7, 2003
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    6
    Found the answer, thanks to a wonderful tech at GNAX.
     
  3. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    Very helpful reply. This will help many others having the same problem in the future.
     
  4. Ghulam Yaseen

    Ghulam Yaseen Well-Known Member

    Joined:
    Mar 14, 2008
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Karachi,Pakistan
    Yaseen

    Hello :),

    Please login as root on your server and then follow these instructions care fully
    ===================
    --> you need to copy shadow file on your new drive as
    cp etc/shadow /new_drive/shadow.mig
    --> copy password file on your new drive as
    cp /etc/passwd /new_drive/passwd.mig
    --> copy group file on your new drive as
    cp /etc/group /new_drive/group.mig
    ====================
    after this, you can easily move your data:cool:

     
  5. rpmws

    rpmws Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    1,824
    Likes Received:
    5
    Trophy Points:
    38
    Location:
    back woods of NC, USA
  6. Ghulam Yaseen

    Ghulam Yaseen Well-Known Member

    Joined:
    Mar 14, 2008
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Karachi,Pakistan
Loading...

Share This Page