HostGator.com » Support Portal

Avoid down time, seamlessly transfer hosting with no interruptions

Here is a HostGator article which explains how to avoid downtime.

Advanced Techniques

We have also included some advanced tips below to supplement and expand upon the article linked above. There are multiple techniques for avoiding downtime when transferring websites, and you will want to choose the method most appropriate for you and your site. Some methods are more technical and/or require more attention than others.

What about my Database?

Your database(s) will be copied over to the new server as part of the transfer process. If your database does not change much (for example, it only changes when you add new posts or pages to your site), then there is little risk of lost information during the transfer process.

On the other hand, if you have a website where the database in constantly being updated with new information, such as forums or a site with lots of user generated content, you will want to take special care to make sure no information is lost in the transfer. There are a couple ways of doing this.

Advanced Technique 1: Reconfigure the site on the old server to access the database on the new server prior to changing the DNS.

One way to do it is you can configure your site to connect to your new database, remotely; this way whether your visitors are directed to the new site or the old site, all the new updates will be saved to the new database. Now the new database will have all of your current information and can continue to update.

This technique is the most technical, but would minimize downtime as much as possible for all visitors to your site. You or your web designer would need to make changes to your site during the transfer to make this work.

A simplified set of steps include:

  1. Transfer all the files, databases and other settings over to the new server. (Via free content transfer or you transferring the files yourself.)
  2. Test the site on the new server to make sure it works as expected.
  3. (If changes have occurred to the database between steps 1 and 4, then re-transfer the most recent version of the database. This step is unnecessary if you do step 4 immediately after steps 1 & 2.)
  4. Change the database settings on your site so that the site on the old server accesses the database on the new server.
  5. Change the name servers and DNS to point to the new server.

Using this technique, it would not matter which server a visitor sees while the DNS propagates, since both the old server and new server update the same database.

Advanced Technique 2: Disable updates to the database on the old server during the transfer.

Another method is to modify your website on the old server so that it does not accept updates to the database during the transfer. Like the previous technique, you or your web designer would need to make changes to your site during the transfer to make this work.

This technique is best if you are rapidly progressing through the steps necessary to transfer, and/or don't mind if a couple people temporarily see the old site while the DNS changes propagate. This is also good for sites where the database does not change that often because of user input.

Depending on how your site is coded, this could mean putting the site into a read-only mode where people can view information but not make any changes, turning on maintenance mode on your blog or CMS, or possibly disabling the database all together and putting up a temporary page telling customers the site will be up shortly.

Ideally you would do this immediately before transferring the latest copy of the database over to the new server, and once that is completed, changing the name servers and DNS to point to the new server.

While the DNS propagates (updates) worldwide, some people will see the site on the new server, and some will see the site on the old server, yet only the new server will accept changes in the database.

A simplified set of steps include:

  1. Transfer all the files, databases and other settings over to the new server. (Via free content transfer or you transferring the files yourself.)
  2. Test the site on the new server to make sure it works as expected.
  3. On the old server, modify your site so it cannot accept changes to the database.
  4. (If changes have occurred to the database between steps 1 and 3, then re-transfer the most recent version of the database. This step is unnecessary if you do step 3 immediately before or after step 1.)
  5. Change the name servers and DNS to point to the new server.

While the DNS propagates worldwide, some people will see the site on the new server, and some will see the site on the old server.

Tips on Reducing Propagation Time

After the content transfer, you can create an A record in your existing DNS (most likely on your old server) to redirect all visitors to the new server; this is much faster than waiting for the propagation of new name servers.

Also, after the site transfer, you can create a MX record so your emails will all be delivered to the new server and not need to wait as long for propagation.

Once you have the A records and MX records updated to point to the new server, you can change the name servers anytime.

Transfer Time Frame

We require up to 72 hours for all transfer requests. The time will depend on how large is your transfer. (If you need the content transferred faster, or need more control of the transfer process, you may transfer the files yourself instead of having us do it.)

The free transfer service does not include any programming, code or configuration changes to your site that would need to be made in the advanced techniques described above (for example, changing your database settings on the old site so both point to the new database, or name server changes).

Basically, the more control you want over the transfer process, the more involvement would be required of you or your web designer in the process.


Article Comments

Jim
Hello,
I have a website hosted with another company. If I move my website over to your company, will that affect the search engine results of my website? And if so, how long might it take for my website to be spidered and my search engine results restored back to the how they are now?
Thank you,
Jim

HostGator
Moving to a new host will NOT affect the pages known by a search engine. As long as the domain name, path, and file name remains the same, the search engine result will be valid.

However, if you change your type of hosting, that can have an effect on your ranking, and any change should happen the next time spiders crawl your site. (e.g. If you go from SEO hosting to a Baby plan, you lose the benefit of your separate IPs.)

New Reseller
Haha ... I love that answer. If you are worried about downtime and loosing info all you have to do is disconnect your database for 3 days! I know my clients don't care when they are down for 3 days, as long as they don't loose any data! :) Wait, isn't 3 days of a disconnected website like 3 days of lost input? hmmm ....

HostGator
A more advanced site owner can come up with other solutions.

In lieu of shutting down your databases for 72 hours, my suggestion is to update your old site with the remote configuration settings for the new database. This way the old site and the new site will both update the new database.

Rick
Is upgrading from a Shared Reseller plan to a VPS Reseller plan going to have the same downtime and move issues as moving from a different host to Hostgator? Several of my clients rely on their MySQL databases for daily business and would not be happy with a 3 day downtime.

HostGator
Whenever you move between Shared Webhosting, Reseller Hosting, and VPS Hosting, this does require a server change. This is not as difficult as changing hosting companies, but can cause much downtime.

That is why I explained several different ways to minimize the downtime. If you use the A record and remote MySQL tricks I mentioned, you can have almost no downtime (the actual downtime depends on how long it takes you to reconfigure your database configuration files).

KIRKLAND
I have a hosting with another company and would like to switch to Hostgator, however, I don't know much about transferring process. How much of this process will Hostgator do, and how much will I be responsible for myself?

HostGator
Be sure to read the "moving" page first. We pretty much cover the entire transfer process for you. We can additionally offer support to help you configure database settings.

You will be responsible for creating new content, rearranging the file structure, and creating email accounts which could not transfer.

john
I have uploaded my website file in c panel I don't know what next is there any one who can help me?

HostGator
Please contact us via email, phone or live chat for personalized assistance.

TK
hi we are thinking of moving our web site over to you guys.
currently the mx records for our domain are all pointed to google. will we need to set up each email address again or can we just transfer the current mx records that point to google from the get go?

Thanks.

HostGator
Yes, simply create the same MX record on your HostGator server, and then change the name servers to HostGator.

HostGator
Thank you for your comments. Just a quick reminder that the comments on this page are not monitored by technical support staff, and that for support issues, it is best to contact us by live chat, phone or email so we can assist you right away.

Although comments are not monitored by technical support staff, they are moderated and read by technical writers. Comments will need to be approved by a moderator before appearing.

Our technical writers do read the comments periodically for the purposes of updating the articles, and do appreciate your feedback, suggestions and corrections to the articles themselves, as well as any suggestions or tips for readers of this article. However, support questions posted here are not guaranteed to be replied to in a timely manner or at all. For support issues, it is best to contact our support staff instead by live chat, email or phone.



Your comments help us keep the knowledge base updated. This is not a medium for support. If you have questions or need help, please contact us via email, phone or live chat for fast assistance.

Post Comment