There comes in the life of a website when it needs a new host, a better server to provide faster and better services to its readers/users. Such a time is always a trying time for both the website and the owner as some data if not all could be lost when not properly handled. Website migration to a new host is always a technical issue but I am here today to give you a complete website migration guide to avoid downtime or data loss.
Website Migration without Downtime/Data Loss
Some people are still stuck with their webhosts just because of the technicalities of migrating to a new host. Website migration from an old webhost to a new webhost involves DNS changes, File& Database transfers, Server configurations etc. To avoid any downtime or data loss during any website migration to a new host, follow this guide carefully.
Purchase a new hosting package:
Once you have your reasons to migrate your website to a new host, don’t wait till the old hosting plan expires before you begin your website migration processes, this way you can complete your website migration before cancelling your old or existing hosting plan. It will be risky to cancel your existing plan before completing your website migration as your old webhost may not hesitate to cancel your hosting plan immediately and this may lead to loss of files and database information.
Download a Complete Backup of your Site:
Download a complete backup of all the files on your existing server into a secure hard drive. Depending on the size of your site this may time little or more time. You do not need to decompress the files as you will be uploading it to your new host in exact compressed format. The backup must contain all the files in your sever maintaining the same file and folder structure and your complete database.
So simply login to your cPanel and click on the “backups” tool under files, then click on “Download or Generate a Full Website Backup”. A full backup includes all of the files in your home directory, your MySQL databases, and your email forwarders and filters.
Restore Backup on New Webhost:
After downloading your complete backup from your existing webhost, the next thing to do will be to restore the backup on your new webhost. Simply login to your new host with the information sent by email to you after the purchase of a new hosting plan and restore your backup on the new server.
You can do this by simply logging in to your new cPanel account, click on same “Backups” tool under files as you did on the step above, locate the file upload box associated with complete backup, this is labeled “Backup Restore”. Select the complete website backup file that was downloaded from your existing webhost to begin the upload process. On successful uploading of the backup files, you have succeeded in restoring your website on a new host.
Note: There is even an easier way of carrying out the last two steps above depending on the willingness of your new hosting company to help. Instead of manually downloading and uploading your files and database from your existing webhost to your new webhost, you can send your new webhost your cPanel login details of your existing webhost to perform a complete server-to-server transfer of your site without you having to do anything.
Change your DNS (Name Servers):
After you have completed the restore of your complete site on your new webhost, the next thing to do would be to change your DNS address. Changing your DNS address will point to your new host, so visitors to your website will be served with files from your new host. My advice on this stage will be to try your new host for sometime say few days to a week to be sure nothing is wrong before you can decide to terminate your old hosting plan finally.
To change your Name Server address to your new webhost, simply login to your domain registration control panel, locate the Name Server tools and change the DNS to that of your new webhost. DNS usually look like this;
ns1.yourhostname.com
ns2.yourhostname.com
If you registered your domain name with your old webhost, you can now mail them to change your DNS to that of your new host and ensure to tell them not to terminate your old account until you say so since your hosting package has not yet expired.
Some of the great webhosts i know you can migrate to includes;
Hostgator
Once the DNS has been changed, it may take up to 24 – 48 hrs before the new address is propagated. At this point your site will randomly loading from both servers till the propagation is completed. Then you can mail your old host to terminate your old hosting plan.
Conclusion:
I hope this guide can help you in seamlessly migrating your website from an old webhost to a new one without any downtime or data loss. Your visitors won’t even notice such transition. Remember once more, be sure everything is working correctly before terminating your old hosting account. If you have any more questions concerning website migration to avoid any downtime or data loss or contribution, you can use the comment form below to ask me. Remember to subscribe to my RSS.
I am also thinking to change my hosting company. If they make any further trouble for me. I will never wait. BTW thanks for great article. This will help me out to switch my hosting company.
Thanks for great share Nwosu
Mubashir, which hosting company are you currently using? Thanks for your comment though..
Good info! Thanks a lot. Avoid Downtime or Data loss is pretty hard as for me. It’s something like black magic. At least now I have some clues about it) Thanks!
Thanks Martin for your comment, i am glad you found the article interesting enough to comment on it and now your site wont ever have to go offline just because you want to move from one host to another.
Hi desmond, this article will be useful for me as am thinking of migrating my sites from the present host to arvixe.com. The article is well dealt with as it contains everything that is needed for moving from one host to another.
Thanks for the article. Have a nice day ahead.
Thanks! Even though i have suffered alot from my Blog by not following the right guideline, i think this will be last for me.
Hello Nwosu,
Thanks for the helpful guide.I am sure new bloggers will make use of this article. Migration is not that easy part in case you are a less technical guy.
Wishes,
Amrik!
Arvixe is a very good host and i like the way to attend to their customer’s problems quickly and easily. I personally use them…
I hope you make it right this time and continue in your blogging career. Thanks
Yes website migration is not really easy but your new webhost can make it very easy for you if you contact them about it.
Hello Nwosu,
I had some serious problem when i migrated my hosting plan. The bad time any one would thing of migrating is when your hosting packages expires before migrating. then you will have serious problems from all corners :) you post really did bring some insight to the whole case study and you also made it more simple to the new guys trying to migrate. thanks
Thanks Babanature for your comment, i hope next time you see someone who wants to migrate to a new host you can guide him easily using the ideas from this blog post.
Hi Nwosu,
I am happy with hostmonster but should I migrate this will act as a helpful guide.
Sometimes folks need to make a change but are so afraid of losing data or having their website go down they avoid the change, delaying their suffering lol….
Thanks for sharing with us!
Ryan
I am glad this guide can help such peeps migrate easily without the fear of losing data or downtime. Thanks for your comment.