Results 1 to 25 of 40
-
06-02-2006, 02:59 AM #1Web Hosting Evangelist
- Join Date
- Apr 2006
- Location
- Jacksonville, FL
- Posts
- 511
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,
KyleLast edited by xxkylexx; 06-02-2006 at 03:03 AM.
-
06-04-2006, 02:00 AM #2Newbie
- Join Date
- Jun 2006
- Posts
- 9
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 #3Web Hosting Evangelist
- Join Date
- Apr 2006
- Location
- Jacksonville, FL
- Posts
- 511
No problem. Glad this tutorial has been helpful.
-
06-05-2006, 11:20 AM #4Newbie
- Join Date
- Jun 2006
- Posts
- 13
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 #5Web Hosting Evangelist
- Join Date
- Apr 2006
- Location
- Jacksonville, FL
- Posts
- 511
MySQL versions may present a problem, but the versions of cPanel should be ok!
Kyle
-
06-07-2006, 10:12 AM #6Newbie
- Join Date
- Jun 2006
- Posts
- 13
It look like everything went fine. Thanks.
-
06-10-2006, 12:09 AM #7Web Hosting Evangelist
- Join Date
- Apr 2006
- Location
- Jacksonville, FL
- Posts
- 511
Glad it helped!
Cheers.
-
06-12-2006, 09:01 AM #8Newbie
- Join Date
- May 2006
- Posts
- 9
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 #9Web Hosting Evangelist
- Join Date
- Apr 2006
- Location
- Jacksonville, FL
- Posts
- 511
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 #10Newbie
- Join Date
- May 2006
- Posts
- 9
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 #11Web Hosting Evangelist
- Join Date
- Apr 2006
- Location
- Jacksonville, FL
- Posts
- 511
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 #12Newbie
- Join Date
- May 2006
- Posts
- 9
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 #13Web Hosting Evangelist
- Join Date
- Apr 2006
- Location
- Jacksonville, FL
- Posts
- 511
Glad to help.
-
08-11-2006, 08:29 AM #14Junior Guru Wannabe
- Join Date
- May 2005
- Posts
- 38
Big Big help i just used it.
-
08-11-2006, 10:37 AM #15WHT Addict
- Join Date
- Sep 2004
- Posts
- 165
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.
-
08-12-2006, 01:41 AM #16Web Hosting Evangelist
- Join Date
- Apr 2006
- Location
- Jacksonville, FL
- Posts
- 511
The "restore" account isn't required, no. Your method should work just fine.
Glad to help!
-
08-21-2006, 04:35 AM #17Registered User
- Join Date
- Dec 2005
- Posts
- 6
Does it take care of Account details?
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.)
-
08-25-2006, 03:23 PM #18Newbie
- Join Date
- Jul 2005
- Posts
- 10
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
-
08-27-2006, 03:11 AM #19Web Hosting Evangelist
- Join Date
- Oct 2004
- Location
- India
- Posts
- 509
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.
ESC :wq!
-
08-29-2006, 08:50 PM #20Junior Guru Wannabe
- Join Date
- May 2006
- Posts
- 74
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?
-
08-30-2006, 11:08 AM #21Web Hosting Evangelist
- Join Date
- Apr 2006
- Location
- Jacksonville, FL
- Posts
- 511
I am not aware of that error, sorry.
Kyle
-
10-28-2006, 08:04 PM #22Junior Guru
- Join Date
- Jun 2004
- Location
- canada
- Posts
- 222
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!The egg came first. the "mutant" egg belonged to an animal that was not exactly a chicken, but its offspring was. Thus, the egg was a chicken's egg, and it came first.
-
12-04-2006, 12:09 PM #23Junior Guru Wannabe
- Join Date
- Aug 2005
- Location
- England
- Posts
- 64
thank you Kyle, very helpfull
-
01-19-2007, 09:23 PM #24Web Hosting Master
- Join Date
- Oct 2002
- Location
- Virginia
- Posts
- 788
Originally Posted by xxkylexx▒UrlRedo.com - short URL service
-
01-21-2007, 02:54 PM #25Junior Guru
- Join Date
- Jun 2004
- Location
- India
- Posts
- 204
I want to move accounts between 2 cpanel servers (both having root and SSH access). How to go about it?