Uploading email directory of old account in the same directory of the new one (migration)

kamrannorway

Registered
Oct 9, 2014
2
0
51
cPanel Access Level
Root Administrator
Hello,
I'm moving a shared account to a VPS. This VPS doesn't have enough storage to use full account backup. So, I could only get backup of the databases using cPanel tool. I'm downloading folders and files under public_html to my local computer. I also do the same for mail directory where email accounts and sent/received mails are stored.
My question is can I just upload mail directory downloaded from old account, exactly to the same location in the new account, and have all email accounts, their passwords and sent/received mails same as before?
Thank you
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,243
463
Hello :)

You will need to re-create the email accounts in cPanel before uploading the contents from the "mail" directory. Or, download the contents of the "/home/$username/etc" directory and upload that to the account in addition to the "mail" directory. Run the following command after uploading that data:

Code:
/scripts/mailperm $username
Thank you.