How to Migrate Hosting Accounts With WHM/Cpanel

Written by on January 28, 2007 in WHM/Cpanel - 7 Comments

There is an interesting feature in WHM/Cpanel to backup and restore accounts between different servers. I used this feature to move my hosting accounts from my old servers to the new one, most important of all is that I have the same configuration in the two servers ready to accept new active accounts.
whm-fullbackup.png
From Cpanel you can easily create a full backup of your account to move it, and I did it for all simple accounts, the only problem I have found when migration come with some changes. For example if your old username used for reseller exist already on the new server, or is used for another domain and the migration require your old domain to be assigned to a new username. This is the only case I have found where the Cpanel move files won’t work correctly. Such cases I just treat them manually, fortunately it happened only for one account.
whm-restore.png


So the simple steps are the following :
1- From your old Cpanel choose Backups, then “Generate/Download a Full Backup”
2- In the new server be sure you have ftp active so you can move directly the backup
3- Choose FTP, SFTP or SCP depending on the options you have, and enter your email to get notified when backup transfer is finished.
4- Generate a backup
5- Now in your new server move the transferred backup from /home/username to /home
6- From new server WHM, choose “Restore a Full Backup/cpmove file”
7- You should see the backup file you have moved available
8- Enter the same username, that you’ll find also in the backup file name backup-date_time_user.tar.gz
9- Hit Restore
The account should be restored correctly. Now last step
10- Update DNS to make it point to the new server and change it from your new WHM DNS zone. The copying process will copy also the old DNS so you have to change it manually otherwise it might cause problems and keep website retrieved from the old IPs.
Hope this was helpful and let me know if this doesn’t work for you.
Update : Step 10 updated, I forgot to mention that DNS zones should be updated in WHM to reflect the new DNS change.

7 Comments on "How to Migrate Hosting Accounts With WHM/Cpanel"

  1. Keith August 29, 2007 at 7:09 pm · Reply

    “…the only problem I have found when migration come with some changes. For example if your old username used for reseller exist already on the new server, or is used for another domain and the migration require your old domain to be assigned to a new username. This is the only case I have found where the Cpanel move files won’t work correctly. Such cases I just treat them manually…”
    I am have this same problem and cannot figure out how to move them manually; unfortunately it is with about 14 new accounts and I get the same User exists error and the restore stops.
    Any suggestions would be greatly appreciated.
    Thanks

  2. Erict October 13, 2008 at 12:05 pm · Reply

    I’ve got problem with my new WHM. There is no “Restore a Full Backup/cpmove file” on new WHM menu. My new reseller bought at hostgator.

  3. saeed January 24, 2009 at 1:34 am · Reply

    thanks

  4. David Grega March 2, 2009 at 10:30 pm · Reply

    Resellers will not have access to this functionality. Only server administrators (root user) have access to this migration tool.

  5. lisa December 28, 2009 at 8:37 pm · Reply

    This may seem like a dumb question, but I get everything except how to move the zipped backup file from the home/username to the home directory. Is this through SSH or can I use ftp? I dont really understand SSH or the series of commands that I need to execute this process.
    Thanks for any advice!

  6. RS July 20, 2010 at 6:47 am · Reply

    Thank you for the sharing. Appreciate it. But, is it true only root admin can handle this?

  7. Travis Cable October 15, 2010 at 4:42 am · Reply

    What about SSL Certs? Will that all be good to go as well?

Leave a Comment