Transferring very large account from one server to another

rezman

Well-Known Member
Feb 3, 2011
45
0
56
USA
cPanel Access Level
Root Administrator
I'm going to be transferring a VERY large account from one of my Cpanel servers to another one. This account is being used only for email right now. There are 2,715 email accounts totaling 169,826.43 megs in space. Yup, ~170 gigs.

I'm sure the built-in account transfer will work but I'm worried it will take hours to move. I was thinking about just transferring the account and selecting "Skip Homedir" for the transfer. I'm assuming this will move everything, creating ALL email accounts with the same passwords but won't copy the current mail contents over. Is this correct?

I'm thinking of doing that then afterwards using scp to transfer email box contents. I believe the follow is all I would have to transfer over.

Code:
/home/<user>/mail/<domain>/*	- Email boxes
/home/<user>/etc/<domain>	- Custom filters
/home/<user>/.cpanel/filter.*	- Account level filters
/home/<user>/public_html/*	- Anything that might be here.
After the move I can manually fix any permissions for directories 2, 3 and 4 from above and just manually run /scripts/mailperm <user> to make sure all mailboxes are correct.

Question 1: Am I correct to assume the Cpanel transfer will move all SQL data related to webmails (address books) over?

Question 2: Is there any problem with doing it like this? Moving via backup would resort in lost email seeing as mail moves through this account non-stop.
 

24x7server

Well-Known Member
Apr 17, 2013
1,912
99
78
India
cPanel Access Level
Root Administrator
Twitter
Hello,

Yes, You can migrate your account using the Skip Homedir options in WHM and after that try to rsync your all files from old server to new server through command so that you will not get any issues with permission and ownership

Try to execute following command on your old server

Code:
rsync -av --progress /home/$username/* NEWSERVER_IP:/home/$username/

Thank you..!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Question 1: Am I correct to assume the Cpanel transfer will move all SQL data related to webmails (address books) over?
The cPanel transfer process does include MySQL databases associated with the account. This includes data you have stored in the Horde or Roundcube databases. Note that in some cases MySQL is not used (e.g. if you are using SQLite for Roundcube).

Question 2: Is there any problem with doing it like this? Moving via backup would resort in lost email seeing as mail moves through this account non-stop.
This is an acceptable practice. It's one of the reasons the option to skip the home directory was implemented.

Thank you.