The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Transferring very large account from one server to another

Discussion in 'General Discussion' started by rezman, Jan 21, 2014.

  1. rezman

    rezman Well-Known Member

    Joined:
    Feb 3, 2011
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    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.
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    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..!
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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).

    This is an acceptable practice. It's one of the reasons the option to skip the home directory was implemented.

    Thank you.
     
Loading...

Share This Page