grin
grin

Reputation: 8211

Complete list of steps to migrate live website from one server to another

I'm preparing to launch a new version of an existing website. The new site will be on a completely separate server that uses a LAMP setup. Here's my plan:

  1. Set up the new site on the new server
  2. Rsync user-generated content to new server
  3. Take down the old site
  4. Take a snapshot of the old MySQL database and load it on the new server
  5. Rsync user-generated content again
  6. Bring up the new site
  7. Point the DNS to the new server

Am I forgetting anything? Is there a better way of doing this that avoids downtime (or minimizes it)?

I purposely didn't provide many details about my specific setup because I'd like a list of steps that is fairly generic and can be followed for most migrations. If that doesn't work or if there are details that you need to know to provide a better answer, I'll be happy to add them.

Upvotes: 1

Views: 616

Answers (1)

Piers Karsenbarg
Piers Karsenbarg

Reputation: 3201

If you know that it's only going to take a couple of hours, I would point the DNS first as it can take up to and over 6 hours to propogate. You can always change the host file on your workstation to point to the new IP address in the mean time.

Other than that I can't think of anything else.

How come you're moving servers? Have you run out of space?

Upvotes: 1

Related Questions