Guide Ecommerce & WooCommerce

How to migrate a store without losing orders

A store never stops taking orders just because you are moving it, so the migration has to account for orders placed mid-move.

Updated 9 min read Intermediate

A brochure site migration has a simple failure mode to avoid: do not lose content that was published between your last backup and the switch. A store migration has the same problem plus a much sharper edge — customers keep placing orders, and paying for them, while the move is happening. A migration plan that only accounts for files and a single database snapshot will lose any order placed after that snapshot was taken.

The core problem: the store does not pause for you

Unless you deliberately close the store during the move — which is a valid choice for a small store with low traffic, and a bad one for anything doing meaningful daily volume — orders, account sign-ups and stock changes keep happening on the old hosting right up until DNS finishes pointing at the new one. Any migration plan that copies the database once, early in the process, and treats that as final will miss everything that happened afterwards.

DNS propagation is the highest-risk window

Between switching DNS and it fully propagating, different visitors can be sent to either the old server or the new one. If both are still running WooCommerce and both can accept orders, you can end up with orders split across two separate databases during that window — and neither one has the complete picture on its own.

The general migration steps, adapted for a store

The overall shape follows any WordPress migration — copy files and database, test on the new hosting, then switch DNS — covered in general terms in migrating a WooCommerce store. What is different for a live, order-taking store is the timing around the database copy specifically.

  1. Copy everything to the new hosting first

    Files, uploads and an initial database snapshot, the same as any migration. This does not need to be perfectly current yet — its purpose is to let you test and confirm the new hosting works before anything customer-facing depends on it.

  2. Fully test the store on the new hosting before going anywhere near DNS

    Using a temporary URL or a hosts file override, place a complete test order on the new hosting: browse, add to cart, check out, confirm payment processes and the confirmation email arrives. How to test a store before you launch it covers this step in full.

  3. Take a fresh, final database copy immediately before switching DNS

    This second sync captures every order, account and stock change made on the old hosting since the first copy — which, on an active store, will not be nothing.

  4. Switch DNS, and lower the TTL beforehand if you can plan ahead

    A lower TTL set a day in advance means the switch itself completes faster and the risky propagation window is shorter — see how DNS changes take effect for the mechanism behind this.

  5. Check both databases for orders placed during propagation

    For the hours immediately after the DNS switch, check whether the old hosting's database received any new orders — some visitors may still have been reaching it. Merge anything found into the new, live database, and cross-check against your payment provider's dashboard as an independent record of what was actually paid.

Payment gateways need reconnecting, not just copying

Stripe, PayPal and most other payment gateways are configured with settings and API keys tied to your WordPress installation, and simply copying the database is not always sufficient to guarantee they work identically on the new hosting — particularly if a webhook URL is registered pointing at the old domain or server. Explicitly re-test payments on the new hosting rather than assuming a copied configuration works unchanged; see setting up Stripe for what a working test looks like.

Consider a maintenance window for anything beyond a small store

If your order volume is high enough that even a short propagation window risks a meaningful number of split orders, a brief, clearly communicated maintenance window — pausing new orders on the old hosting for the short period around the DNS switch — removes the reconciliation problem entirely rather than managing around it. For a small store with infrequent orders, this is usually unnecessary caution; for a busy one, it is a reasonable trade of a short pause against the risk of losing an order.

Free migration assistance is included with hosting here

If you are moving to this hosting, our migration service can handle the technical transfer for you, which reduces the number of steps you personally need to get right during the highest-risk window of the move.

Once the store is confirmed fully working on the new hosting with no orders unaccounted for, treat the old hosting as a fallback rather than cancelling it immediately — keep it available until you are certain nothing was missed.

Related reading