What is the fastest way to migrate a website between hosts without downtime?
Login Required
Please sign in with Google to answer this question.
3 Answers
0
I once copied the whole site to the new host, kept the old server running, and pointed the testing URL to the duplicate until the DNS change cut over after lowering TTL. That let me keep serving pages while I synced the database before swapping the records.
0
0
Spin up the clone, sync databases, lower TTL, then flip DNS once everything checks out so no one sees downtime.
0
0
Start by mirroring your files and database on the new host while the old site keeps running, I did this by exporting the DB and rsyncing uploads. Lower the current DNS TTL to 300 seconds a day before the move so change happens fast. Once the clone works, do a final sync of recent data, then update DNS to point to the new server. Monitor logs to catch errors, and keep the old host around for a short overlap just in case something needs a quick rollback.
0