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.

Email accounts not restored using restorepkg

Discussion in 'E-mail Discussions' started by nerbonne, Apr 20, 2008.

  1. nerbonne

    nerbonne Well-Known Member

    Joined:
    Aug 19, 2007
    Messages:
    52
    Likes Received:
    1
    Trophy Points:
    6
    I wanted to test the pkgacct and restorepkg scripts, so I ran pkgacct, and downloaded the file to my pc. I then uploaded the cpmove file to a second server, running the exact same OS, WHM and Cpanel versions. I ran restorepkg and everything restored properly except for the email accounts. I did notice while it was all going by that it said something about how it couldn't restore the "horde" mysql database because it already existed.

    Is it normal that the email accounts do not get re-added? If not, can anyone suggest what the problem might be?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    When you restored the account on the new server, that account did not exist at the time of restoration... correct? The restoration process will create the account as needed.
     
  3. nerbonne

    nerbonne Well-Known Member

    Joined:
    Aug 19, 2007
    Messages:
    52
    Likes Received:
    1
    Trophy Points:
    6
    Correct, it did not exist. There is only one horde database if I am correct, so it will work if there are absolutely no accounts on the server, but on the second account restore it goes haywire.
     
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Did this test account have a number or email addresses? When you mean 'not restored' what wasn't restored:

    1. The /home/user/mail/example.com/account entries?
    2. The /home/user/etc/example.com/(passwd|shadow) entries?
    3. The /home/user/mail entry?
    4. The /etc/valiases entry?

    The horde issue might arise if your Server does not have InnoDB table types enabled.
     
  5. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    Normally when you copy an account the email accounts are created just perfectly, so yes, something is going wrong (nobody else seemed to say this, so hope this adds a little clarity).
     
Loading...

Share This Page