
|
View Full Version : How-to: Migrate Accounts From One Server To Another (cPanel)
xxkylexx 06-02-2006, 02:59 AM | 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 |
Maze Hosting 06-04-2006, 02:00 AM Thansk!
cPanel is the most user-friendly control panel and it helped me alot in the account copy/transfer |
xxkylexx 06-04-2006, 02:15 AM | No problem. Glad this tutorial has been helpful. ;) |
pcigre 06-05-2006, 11:20 AM 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? |
xxkylexx 06-05-2006, 12:30 PM MySQL versions may present a problem, but the versions of cPanel should be ok!
Kyle |
pcigre 06-07-2006, 10:12 AM It look like everything went fine. Thanks. |
xxkylexx 06-10-2006, 12:09 AM
rbayu2 06-12-2006, 09:01 AM 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 (http://www.my-WHM-domain.com) ?
thanks... |
xxkylexx 06-14-2006, 12:37 AM For the remote server address, put the IP of your new server.
Let me know if you need any more help. |
rbayu2 06-14-2006, 05:18 AM 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. |
xxkylexx 06-14-2006, 02:52 PM 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 |
rbayu2 06-14-2006, 10:31 PM 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 |
xxkylexx 06-15-2006, 12:46 AM
Relo74 08-11-2006, 08:29 AM Big Big help i just used it. |
autodelete 08-11-2006, 10:37 AM 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. |
xxkylexx 08-12-2006, 01:41 AM The "restore" account isn't required, no. Your method should work just fine.
Glad to help! |
vijay96238 08-21-2006, 04:35 AM Hello,
I am upgrading hardware & OS for my cpanel server. & I am planning to transfer my old accounts to new server.
I read all user's comment on your method of transfering account.
while i transfer whole account from old to New server, will it take care of account detail, type of plan, usage detail (of current month)?
Vijay.
BTW, just a week away before migrating to new server (So all i know is just theorital knowledge, practicle experience - i would do in next week.) |
ByMarchi 08-25-2006, 03:23 PM Hi,
but if the Old Serverīs admin hidden the Backup Icon of cPanel.
I have a customer that I donīt get transfer account, because the old serverīs admin hidden the backup icon of cPanel |
firestarter 08-27-2006, 03:11 AM This means that they have disabled the backup option from the root WHM. You need to ask then either to provide the current cpmove backup or enable that so that you can take backups. |
lovelynetworks 08-29-2006, 08:50 PM I am getting this error when i try to move the account: 450-Error during write to file: File too large
Is there any solution to it? |
xxkylexx 08-30-2006, 11:08 AM I am not aware of that error, sorry.
Kyle |
WebEnzyme 10-28-2006, 08:04 PM Amazing! Thanks very much!
But I have a question.. more like a general one.
I transfered accounts using both this way and the default WHM way for smaller accounts.. and always on the new server it shows the new accounts to be smaller in size..
so if the original was 2 M the new one will be 1 M
if it was 39 M it will become 29 M
is that normal??
Thanks! |
EddieFudd 12-04-2006, 11:09 AM thank you Kyle, very helpfull |
dsotmoon 01-19-2007, 08:23 PM 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
i just wanted to say thank you, this worked perfect for an account that WHM wouldnt move with its account transfer process |
sharpnose 01-21-2007, 01:54 PM I want to move accounts between 2 cpanel servers (both having root and SSH access). How to go about it? |
xxkylexx 01-24-2007, 04:08 PM I want to move accounts between 2 cpanel servers (both having root and SSH access). How to go about it?
That's what the tutorial is for. Just read...? |
antoniojeldres 01-19-2008, 01:06 AM I just want to the first to thank you in 2008 for this tutorial :D
Great tool!
Ps: Please edit the address /home/restore/ instead of public_html |
This is an extremely useful tutorial! Thanks for sharing :) |
James Peter 01-31-2008, 12:32 PM Hey Kyle,
Thanks for the Tutorial. I knew this one However,
I have a Question:
How do We move Only mYSQL databases From Old One to New? or Only files. (not entire files).
I mean to say "Specific thing"
Any Ideas?
Thank you |
LaptopFreak 10-06-2008, 08:14 AM Nice guide. Thanks for posting, its very useful :) |
skypn 03-28-2009, 05:35 AM I like to thank U for this extremely educating tutorial you have come up with, though I have been browsing WHT for some time now, but it is this article of your's which has compiled me to register and post a 'thankU' to you for all your help.
People like you makeup the community to provide a chance for people like me(dumb) to learn some thing so informative an easy to understand, all b'coz of your help.
May Lord JESUS Christ Bless you !! |
3thome 05-13-2009, 07:33 AM
|