What should I keep in mind when transferring hosting to a new server?

I’m working on moving an LMS platform to a new server. Any tips on what details to watch out for?

Here’s how I usually handle it:

  • Reduce the TTL of the DNS records to something low, like 60, at least 48 hours before moving.

  • Choose a low-traffic time for the transfer, and use a tool like rsync to copy files. Set the site to maintenance mode during this to keep everything intact.

  • Do a second rsync once it’s in maintenance mode, and then dump and restore the database.

  • Update the DNS to point to the new server. Keep the old server in maintenance mode, and bring the new one live.

  • If your provider has DNS management, finish by updating the nameservers to match.

Some hosting companies will do all this for a small fee, or even free, if it’s tricky for you to manage.

@Marlow
Thanks! I have experience with server config and hosting changes, but since this is an LMS using an older version of Moodle, I wasn’t sure if the process would be the same.

Backups are key. When switching hosts, make sure you’ve got a solid backup plan so you don’t lose any data in the process.

Start by backing up files and databases to avoid losing data. Check that everything’s compatible with the new server and update DNS settings so it goes smoothly. Then, monitor the site carefully after the migration to catch any issues.

If you’re switching hosts, don’t cancel the current hosting until you’re fully transferred. And it’s smart to make more than one backup, just in case (I use All-in-One WP Migration and also have a backup in BlogVault).

@Smart
Gotcha! Thanks!

Back up the site and database, confirm server compatibility, migrate the data, update URLs, set up SSL, adjust DNS, and test thoroughly before going live. Doing this during a low-traffic time is best.