Email accounts not restored using restorepkg

nerbonne

Well-Known Member
Aug 19, 2007
52
1
58
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?
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
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.
 

nerbonne

Well-Known Member
Aug 19, 2007
52
1
58
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.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
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.