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.

Migrating old cPanel data - broken OS, passwd, shadow file

Discussion in 'General Discussion' started by mortenhn, Feb 3, 2013.

  1. mortenhn

    mortenhn Registered

    Joined:
    Aug 26, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hello everyone

    Hope somebody know the answer to this one.

    My cPanel mysteries stop allowing me and my host provider access to the interface, it could be because of a broken passwd and shadow file, and they decided after trying very hard with many ways to make cPanel work again to re-install the sever OS and a fresh copy of cPanel.

    Now since i can't do a cPanel to cPanel transfer using cPanel because the old one is not working and i don't have backups would the rsync way as described in http://forums.cpanel.net/f49/help-moving-cpanel-accounts-damaged-disk-163734.html Work if i skip rsync the passwd and shadow file from the old disk ?

    If i rsync everything except passwd and shadow would it still work ?.

    Best regards
    Morten
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    yes it should work just fine

    I would run a fsck on the drive after you have completed as if your passwd file was corrupted other files may be corrupted as well
     
  3. mortenhn

    mortenhn Registered

    Joined:
    Aug 26, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    So if i don't rsync passwd* and shadow* then how would the new cPanel knows about the cPanel usernames that was on the old cpanel ?
     
  4. Greenhost

    Greenhost Well-Known Member

    Joined:
    Jan 22, 2013
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    I'm not sure, but I think if first you create account and after that do rsync it will be fine.
     
  5. Greenhost

    Greenhost Well-Known Member

    Joined:
    Jan 22, 2013
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Use this linke it has lots of form to filter something on rsync. I hope it helped you.
     
    #5 Greenhost, Feb 4, 2013
    Last edited: Feb 4, 2013
  6. mortenhn

    mortenhn Registered

    Joined:
    Aug 26, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    After i created 1 username/account in the WHM i did a complete rsync as described in the other topic but the email accounts does not show up and the same does any MySQL databases that is part of the account.

    Anybody know how to migrate from and old cPanel to a new cPanel when its not possible to use cpanel internal transfer function ??

    Best regards
    Morten
     
Loading...

Share This Page