rsync mail directory after migration?

room9

Member
Jul 17, 2011
5
0
51
We're planning a migration from one hosting provider to another, both using cPanel. We're going to backup each account, copy across to the new server and restore. After restoration we'll change the MX records on the old server to point to the new server.

The only problem is what happens with email arriving while backup, copy and restore are happening.

Can I simply use rsync to update the new server with any late arriving emails after making the MX record change? E.g.

Code:
rsync [email protected]:~/mail/ [email protected]:~/mail/
Are there requirements here? E.g. both servers need to run courier or both dovecot? Same versions? How do I tell? Are there any permissions issues I need to deal with?
 
Last edited:

ruzbehraja

Well-Known Member
May 19, 2011
392
11
68
cPanel Access Level
Root Administrator
You would want to keep the whole account in sync and not just the mail folder, to ensure that any changes to the email settings / quotas etc are not affected and remain consistent.

Else, it will def. work, just how copying email files will work. But I do not recommend it.