
06-02-2006, 02:59 AM
|
|
Web Hosting Evangelist
|
|
Join Date: Apr 2006
Location: Jacksonville, FL
Posts: 498
|
|
How-to: Migrate Accounts From One Server To Another (cPanel)
Prelude:
Hello. I am writing this tutorial because this is a solid method I have used in the past for easily migrating cPanel accounts from one server to another. Using this method, you can transfer accounts from an old server, to a new one, help customers from another host move to your host, etc. This method is very simple, and does not even require root access on one end of the migration. I have found the "Transfer Account from another Server" tool in WHM to not work so well, and break often, so I have used this method.
Requirements:
-cPanel on both servers
-WHM access on the new server (one that the accounts are being moved to)
-root access on the new server
Throughout the instructions I will refer to the server your are transfering the accounts from as the "old server", and the server to are transfering the accounts to as the "new server".
Instructions:
1. Log into WHM of your new server and create a new account called "restore", or anything you like for that matter. Remember the FTP address, username ('restore', in this example), and account password. We will need these for later.
2. Log into the cPanel account you are wanting to transfer on the old server.
3. Click on "Backup >> Generate/Download a Full Backup".
4. Once here, select the backup destination to be "Remote FTP Server".
5. Enter your email address for verification, follwed by all of the FTP account information for "restore", which we created on the new server.
-Remote Server: new server's address
-Remote User: restore
-Remote Password: restore's password
-Port: 21
Then, click "Generate Backup". This may take some time to backup the files, depending on how large the account is. You should receive an email provided in the above info once it is complete.
6. Now, log into SSH on your new server.
7. Type in the following commands:
cd /home/restore/public_html
ls
After running the list command above (ls), you should see the tar file of the account on the old server. This means that you have successfully sent the file via FTP to your new server.
8. Now move the tar file to your new server's /home directory with the following command:
mv tar_file_name /home
9. Now, log into WHM on your new server and navigate to "Backup >> Restore a Full Backup/cpmove file"
Once here, you should see the old account's username under "Possible cpmove archives found:".
If you do not, log back into SSH and be sure that the account's tar file has been moved into /home.
10. Type in the account name in the text field in WHM, which is proceeded by "Enter the username for the account you wish to restore:".
11. Click "Restore".
12. Repeate process for additional accounts.
That's all there is to it! I have found this way to work alot more sufficiently for moving accounts from one server to another. Hope you all enjoyed!
Regards,
Kyle
Last edited by xxkylexx; 06-02-2006 at 03:03 AM.
|

06-04-2006, 02:00 AM
|
|
Newbie
|
|
Join Date: Jun 2006
Posts: 5
|
|
Thansk!
cPanel is the most user-friendly control panel and it helped me alot in the account copy/transfer
|

06-04-2006, 02:15 AM
|
|
Web Hosting Evangelist
|
|
Join Date: Apr 2006
Location: Jacksonville, FL
Posts: 498
|
|
No problem. Glad this tutorial has been helpful. 
|

06-05-2006, 11:20 AM
|
|
Newbie
|
|
Join Date: Jun 2006
Posts: 11
|
|
I'm noob in this things. Can there be problem it there are diferent versions of cPanel on servers (both are cPAnel 10, but not sure for subverson).
And can there be a problem if there are different versions (default encoding and etc) of mysql?
|

06-05-2006, 12:30 PM
|
|
Web Hosting Evangelist
|
|
Join Date: Apr 2006
Location: Jacksonville, FL
Posts: 498
|
|
MySQL versions may present a problem, but the versions of cPanel should be ok!
Kyle
|

06-07-2006, 10:12 AM
|
|
Newbie
|
|
Join Date: Jun 2006
Posts: 11
|
|
It look like everything went fine. Thanks.
|

06-10-2006, 12:09 AM
|
|
Web Hosting Evangelist
|
|
Join Date: Apr 2006
Location: Jacksonville, FL
Posts: 498
|
|
|

06-12-2006, 09:01 AM
|
|
Newbie
|
|
Join Date: May 2006
Posts: 6
|
|
Hi,
I tried this tutorial but without success. I couldn't locate any tar file.
questions, What should i put for the remote server? is it my WHM server's address? so it should be www.my-WHM-domain.com ?
thanks...
|

06-14-2006, 12:37 AM
|
|
Web Hosting Evangelist
|
|
Join Date: Apr 2006
Location: Jacksonville, FL
Posts: 498
|
|
For the remote server address, put the IP of your new server.
Let me know if you need any more help.
|

06-14-2006, 05:18 AM
|
|
Newbie
|
|
Join Date: May 2006
Posts: 6
|
|
hi xxkylexx,
Still the tar file did not successfully sent via ftp.
Let me give you the step that i did, may i did it wrong somewhere?
- first i log into my WHM server and do Create a New Account.
- now here i didn't name it restore but the same name as the one in the old server, in this case, the domain is hesterbasoeki.com, with the new username and new password.
- then i log into old server cpanel and goto Backup>Generate/Download a Full Backup, and then:
Backup Destination: Remote FTP Server
Remote Server (FTP/SCP only): (my ip address that i used for hesterbasoeki.com, not the server IP right? I was assigned 2 IPs)
Remote User (FTP/SCP only): username
Remote Password (FTP/SCP only): password
Port (FTP/SCP only) : 21
Remote Dir (FTP/SCP only) : EMPTY
- next I go to my virtuozzo power panel and log into SSH, and do then like you said type: cd /home/'username'/public_html, then ls.
But i didn't see any tar file in there.
So did I do it wrong?
Thank you so much for your help.
|

06-14-2006, 02:52 PM
|
|
Web Hosting Evangelist
|
|
Join Date: Apr 2006
Location: Jacksonville, FL
Posts: 498
|
|
Make sure you are using the new server's primary IP address for "Remote Server". Also, have a look in "/home/'username'/" as well as "/home/'username'/public_html" for the tar's.
You should be able to FTP into the account on the new server and see the tar's if they were successfully sent to the new server.
Kyle
|

06-14-2006, 10:31 PM
|
|
Newbie
|
|
Join Date: May 2006
Posts: 6
|
|
hi Kyle,
Thanks, it works!
the tar file was actually inside /home/restore/, not in /home/restore/public_html/.
Thanks so much... this will save me quite a lot of time.
Ricky
|

06-15-2006, 12:46 AM
|
|
Web Hosting Evangelist
|
|
Join Date: Apr 2006
Location: Jacksonville, FL
Posts: 498
|
|
Glad to help. 
|

08-11-2006, 08:29 AM
|
|
Junior Guru Wannabe
|
|
Join Date: May 2005
Posts: 33
|
|
Big Big help i just used it.
|

08-11-2006, 10:37 AM
|
|
WHT Addict
|
|
Join Date: Sep 2004
Posts: 164
|
|
Is there any harm in having the "to move" account already set up on the new server?
I set my mydomain.com and then transferred over the mydomain.com backup. Everything seemed to go well.
What I am asking is, how important is it to have the RESTORE account? It didn't seem necessary in my case.
Thanks btw, nice simple method.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|