Arama Yap Mesaj Submit
Request a Callback
+90
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro

Contact Us

Location Halkali merkez neighborhood fatih st ozgur apt no 46 , Kucukcekmece , Istanbul , 34303 , TR
Server & Infrastructure Migration

Server Migration Without Downtime: From Planning to the DNS Cutover

Server migration is the process of moving an application, website or database to new hardware, a new provider, or new cloud infrastructure, and without careful planning it can cause hours of downtime. This guide explains DNS TTL, blue-green deployment and database replication, and walks through the process of migrating with close-to-zero downtime, from inventory to the final DNS switch.

TTLDNS Time To Live: how long a record stays cached
Blue-GreenA deployment model that switches traffic between two parallel environments instantly
rsyncThe industry-standard tool for incremental file synchronization
~0minThe downtime target for a properly planned migration
01
CORE CONCEPTS

The core concepts of server migration

A downtime-free move is only possible by correctly combining four core concepts.

DNS TTL and cutover

TTL determines how long a DNS record is cached by browsers and resolvers; lowering the TTL before a migration shortens the DNS propagation time at the moment of cutover.

Blue-green deployment

A deployment model where the old (blue) and new (green) environments run simultaneously, and traffic is switched to the new one with a single change, DNS or a load balancer.

Database replication for migration

Setting up continuous incremental synchronization from the source database to the destination means only a few seconds of difference need to be closed at cutover time.

Maintenance window vs true zero-downtime

In a maintenance window, the site is temporarily made read-only or unavailable; true zero-downtime migration continues uninterrupted, including writes, without users noticing anything.

02
WHY IT MATTERS

Why does minimizing downtime matter?

Every minute of downtime during a migration translates directly into a measurable cost.

High

Revenue loss

For e-commerce and SaaS applications, downtime is directly proportional to lost orders and subscription revenue.

High

SEO and ranking impact

If search engine bots can't reach the site during migration or receive error responses, it can cause temporary or permanent ranking losses.

Medium

User trust

Users who hit an unexpected server error quickly lose trust in the site and the brand.

Medium

Data consistency risk

In an unplanned cutover, out-of-sync writes between the source and destination databases can cause data loss or conflicts.

03
MIGRATION PROCESS

The step-by-step process for a downtime-free server migration

A close-to-zero-downtime migration isn't improvised; it requires a sequence of steps that have each been tested beforehand.

01

Take inventory and map dependencies

List every file, database, cron job, environment variable and third-party integration (payments, email, CDN) that needs to move.

02

Lower the DNS TTL in advance

Lower the TTL to 300 seconds or less at least 24-48 hours before the cutover date so propagation is fast when the moment comes.

03

Set up the new server and sync files

Prepare the application environment on the new server and start incrementally copying files from the source server with rsync.

04

Set up database replication or incremental sync

Set up replication (e.g. MySQL master-slave) that continuously mirrors the source database to the destination, reducing the gap at cutover to seconds.

05

Run a dry-run cutover test

Without changing the real DNS, verify that every function on the new server, such as form submissions, payments and login, works correctly using a hosts file entry or a test domain.

06

Do the final sync, switch DNS, monitor, and be ready to roll back

Sync the last differences during a short read-only window, switch the DNS record to the new server, closely monitor traffic and error rates; thanks to the low TTL, you can quickly roll back to the old server if something goes wrong.

04
COMMANDS

Run the commands in order

File synchronization (incremental)
rsync -avz --delete -e ssh /var/www/site/ user@newserver:/var/www/site/
Setting up MySQL replication
CHANGE MASTER TO
  MASTER_HOST='old-server-ip',
  MASTER_USER='repl_user',
  MASTER_PASSWORD='********',
  MASTER_LOG_FILE='mysql-bin.000123',
  MASTER_LOG_POS=4;
START SLAVE;
Checking replication status
SHOW SLAVE STATUS\G
DNS TTL and propagation check
dig +short yourdomain.com
dig yourdomain.com | grep -i "ttl"
Health check
curl -s -o /dev/null -w "%{http_code} %{time_total}s\n" https://yourdomain.com/health
Final sync (before cutover)
rsync -avz --delete -e ssh /var/www/site/ user@newserver:/var/www/site/
mysqldump --single-transaction old_db | mysql -h newserver new_db
05
FAQ

Frequently asked questions about server migration

Can migration really be zero-downtime, or just low-downtime?

True zero downtime is achievable for the web server and static files; a write-heavy database usually still needs a read-only window of a few seconds to a few minutes. With careful planning that window can be short enough that users never notice it.

How long before migration should I lower the DNS TTL?

Lower the TTL at least one full current-TTL period before the cutover date, ideally 24-48 hours in advance, so that by cutover time most resolvers have already picked up the shorter TTL.

What if the new server has a different IP and there's a CDN like Cloudflare in front of it?

If you're using a CDN, you don't need to wait on DNS propagation at all: the DNS record already points to the CDN, so you just update the origin server IP in the CDN's dashboard, and the change propagates much faster depending on the CDN's own cache.

How do I roll back if something breaks?

If you lowered the TTL in advance and kept the old server running for a while, you can roll back within minutes by pointing the DNS record back at the old server's IP, which is why it's important not to shut down the old server for at least a few days after cutover.

Do I need downtime for database migration specifically?

For read-heavy applications, replication makes a near-seamless cutover possible; but to guarantee data consistency, a short window where the last writes are paused is generally the safest approach.

Will server migration affect my SEO rankings?

A properly configured migration, with the same URL structure, correct redirects and uninterrupted access, should not affect SEO; but long outages, broken links or incorrect redirects can cause temporary or permanent ranking losses.

07
RELATED GUIDES

Move on to the next step

EKA SUNUCU TEKNİK BİLGİ MERKEZİ

Looking for a reliable target server to migrate to without downtime?

Check out our Linux VPS plans with NVMe storage, high bandwidth and instant setup, ready for your migration.

View VPS Plans
Top