Copy Email From Backup to New Server?

keat63

Well-Known Member
Nov 20, 2014
1,913
259
113
cPanel Access Level
Root Administrator
I've migrated a number of domains/accounts from a poor performing server to a newer server.
Everything has gone to plan.
However, my final account has years worth of IMAP data.

Is it possible to copy this imap data from a backup file in to it's new location, as syncing between servers is going to take an age.
 

Eminds

Well-Known Member
Nov 10, 2016
319
32
28
India
cPanel Access Level
Root Administrator
Yes , you should be able to do it. Make either a tar.gz or a zip file and then move it. After you have restored , make sure the permissions are configured correctly.
 

24x7server

Well-Known Member
Apr 17, 2013
1,911
96
78
India
cPanel Access Level
Root Administrator
Twitter
Hi,

You can use the below command on the new server:
# rsync -avHP [email protected]<oldserver>:/home/<user>/mail/ /home/<user>/mail/

This will sync the mail data from old to new.
 

keat63

Well-Known Member
Nov 20, 2014
1,913
259
113
cPanel Access Level
Root Administrator
This is a one time thing, so I can't justify the $50 price tag.

I found the files in my original backup, so I'm sending them via FTP to the new server.
My initial test would indicate that it works.
 
  • Like
Reactions: cPanelMichael

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello,

I'm glad to see the method you are using is working well. Remember to access FTP as the account username when uploading the files and to run the "/scripts/mailperm $username" command after transferring the email data to make sure the permission values are correct.

Thank you.