JoeTech.com


IZEA Ranks Badge
Get one at:
JoeTech.com
### Home | Contact | About Joe Tech | Advertise | Get Reviewed | Tools

Join BloggersBase

How to Move a Web Site with Minimal Down Time

Posted in Computers, web by Joe on the February 18th, 2008

Recently, JoeTech.com had a lot of down time. This was because I’ve been working hard to promote it and apparently, it’s been working. The solution was to move from my older server with very little RAM to a faster one with more RAM and updated software. You can’t just jump into something like this, though. If you don’t want a nightmare move, you need a migration plan. Here’s my migration plan for moving any data-driven web site.

Moving Box

1. Give notice
Whenever possible, give notice to your readers/visitors/users that your site will be down during a specified period of time for planned migration. Ideally, this time should be in the middle of the night (to most of your visitors), to minimize the inconvenience. Unfortunately, when you’re site is in need of moving quickly in order to stay up, this step sometimes must be skipped (as was the case for JoeTech.com).

2. Prepare DNS for the move
Whether you handle your own DNS, or someone else does it for you, you should make sure that the TTL (Time To Live) for all your DNS records are set to something like an hour. This should be done 48 hours before your move at the very least. Doing this will ensure that when you move the site and switch the IP address in the DNS records, people will get to the new location quickly. If you want to double-check the site before it comes back up, add in a new “A” record that already points to the new server’s IP address. I like to call this “A” record “new.mydomain.com”. If you do this, step 5.5 below will be to visit new.yourdomain.com in a web browser and click around to test things.

3. Take inventory
Make a list of everything that needs to move. You already know that your web directory and database need to move, but are you forgetting anything else? Does your web server have a special setup for your site? Do you have any cron jobs running that you’ll need set up on the new server? If someone else developed your site and you are not sure about this step, ask them.

4. Put your site on “hold”
Create a small page that just has your site logo and something to the effect of “Sorry. We’re moving to a faster server. We’ll be back in an hour or so.” Put this page in place of your web directory and make sure NO pages on your site can be accessed. Keeping people out of any page will result in no loss of data.

5. Move all your files and data over
Now that the database is sitting idle, it’s safe to move everything without losing anyone’s changes, posts, comments, etc. This often takes the most time, but I like to sit and watch it because I just feel better knowing there were absolutely no errors. Getting your new server to point to the right web files and data will depend on how your server is set up. Many servers come with Plesk or CPanel already installed and you’ll just need to follow their instructions on how to get your site and database set up before moving everything.

6. Set up Email, cron, etc.
If your email goes through an account on your server or you have any cron jobs or additional setup to do on the new server, do it now.

7. Bring it back to life
Once everything is set up, you should cross your fingers, say a little prayer, and then bring your site back to life. To do this, simply swap the IP address in the DNS to the new server’s IP and you should see your site come up pretty quickly.

8. Restore longer TTL
After a day or so, change the TTL in your DNS records back to what it was before (could be a day or a week). If you forget to do this and leave the TTL at 1 hour, it can create an unnecessary burden on your DNS server.

If everything goes well, you should be able to move a data-driven site or blog with very minimal downtime and no big problems. Planning ahead can save you from a lot of headache and embarrassment, so plan ahead and have an easy migration.

If you liked this Joe Tech article, subscribe to the RSS feed for daily updates.

Submit this story to: [ del.icio.us] [ Stumble it!] [Add to Mixx!]

13 Responses to 'How to Move a Web Site with Minimal Down Time'

Subscribe to comments with RSS or TrackBack to 'How to Move a Web Site with Minimal Down Time'.

  1. Jason Boom said,

    on February 18th, 2008 at 9:05 pm

    Hey Joe, I tried to email you but it bounced back. This was on Saturday.

    Good article, btw.

    Jason Boom’s last blog post..Weekly Implosion: Downturn Up

  2. joe said,

    on February 18th, 2008 at 9:23 pm

    Jason: Thanks. The email issue is odd. I thought my mail folder looked thinner, but everything looks fine in DNS. Would you mind IMing me to test a couple things? I’m nodomain1 on Y!IM and AIM.

  3. Jason Boom said,

    on February 19th, 2008 at 12:53 am

    I’m at work right now, but I can in a few hours.

    Jason Boom’s last blog post..Weekly Implosion: Downturn Up

  4. Simple Mindz said,

    on February 19th, 2008 at 4:04 am

    Shheesh, I just go to another web provider, and they do it all for me.

    Simple Mindz’s last blog post..Older Woman, Younger Guy?


  5. on February 19th, 2008 at 4:11 am

    Yeah same here, my hosting will do it for free.

    However, we still need to tell our readers/visitors about the move, though

    Michael Aulia’s last blog post..Win Prizes from Microsoft by answering a Windows Vista quiz!

  6. Syed said,

    on February 19th, 2008 at 5:24 am

    Nice Tips Joe, my blog is also undergoing a major overhaul and these tips will come in real handy. I’m already working on restructuring it, while keeping the present blog. Once everything is completed, I just have to make a switch.

    Syed’s last blog post..Toshiba pulls out of the HD race

  7. Devon Young said,

    on February 19th, 2008 at 5:42 am

    Great list! One thing I’ve done that you didn’t mention, was to write a small shell script to gzip or bzip everything I could into one large tarball and then just download that via FTP and upload it to the new site via http://FTP. In the script, I’d even write a couple lines for my DB to spit out backups of all the tables. That’s useful to do and keep, if you ever think you might need to move again sometime.

  8. joe said,

    on February 19th, 2008 at 8:19 am

    Simple Mindz and Michael: That works for shared hosting, but I moved from a dedicated server that I manage myself to another dedicated server that I manage, so they do none of that.

    Syed: Good luck with it. Despite my thinking I know it all, I seem to have an email issue, still.

    Devon: That is also handy. I was trying to keep it to a bare minimum to not make it too complicated.

  9. Mommie said,

    on February 19th, 2008 at 8:42 am

    Mommieshome is managed personally to. Let me just tell you, sometimes I WISH that it was hosted by someone else!

    Mommie
    http://www.mommieshome.net

    Mommie’s last blog post..If You Can’t Beat Em, Join Em, Then Beat Em

  10. joe said,

    on February 19th, 2008 at 5:47 pm

    Mommie: I have the same feeling sometimes, but then doing things like the slots or my radio station would be much more difficult.


  11. on February 20th, 2008 at 3:10 am

    Great article joe and one that many people will find extremely useful.

    I just moved my blog to a new host 2 days ago and the total downtime was 0 seconds.

    Marketing Blog’s last blog post..Signed Upto PayPerPost And Got Approved

  12. Ed Street said,

    on February 20th, 2008 at 5:14 am

    Good to do list on getting a move done for your web infrastructure. I work as a network administrator so hosting my own website is a lot of fun but if you don’t have the know how then it can become a real burden for you.

    Ed Street’s last blog post..Funny Video - Snake Charmer


  13. on June 7th, 2008 at 2:47 pm

    [...] 19th 2008 2:55am [-] From: joetech.com [...]


Leave a Reply

Sponsor


Entrecard Slots!


Free Ad Slots!



Friends


Top Commenters


Events

none

Sponsors

PinchHost Web Hosting

Archives

 
Popular Posts
 • Nine Inch Nails - Music 2.0
 • How to Protect Your Private Inf...
 • VentureOne 100mph Hybrid Looks Good
 • How To Replace A Dell Inspiron Laptop Heat Sink And Fan Assembly
 • 76 Web Ranked Candidates For President
 
 
Copyright © 2009

Joe Colburn