Migrating a WooCommerce Store to a New Server: How Do You Avoid Losing Orders?

Migrating a WooCommerce Store to a New Server: How Do You Avoid Losing Orders?

If customers can still place orders during a WooCommerce server migration, do not copy the database once and switch DNS. Rehearse on the new server, arrange a controlled write freeze or a proven incremental sync, transfer the final data, then verify orders and payments before reopening checkout.

This is for you if you are moving a live store from shared hosting, a VPS, or an older server. Store owners should decide how to handle orders during the move; technical leads should validate the final sync and rollback; teams using subscriptions, refunds, or several critical plugins should also check related records and scheduled tasks.

This week: rehearse the full transaction flow on the new environment and agree on the cutover stop conditions before changing DNS.

Why order data can split between servers

A DNS change is not a switch that moves every customer to the new server at the same instant. DNS records have a TTL, which tells resolvers how long they may cache a record; caching and client behavior mean visitors can continue reaching different destinations during a transition. The DNS specification’s explanation of resource-record TTL describes the role of that value, but it does not promise a universal cutover time.

If both copies of a store accept writes, each can record orders, customer changes, refunds, stock updates, and payment events that the other copy never receives. A file copy does not transfer later database changes. A database copy made before cutover does not include orders created afterward. That is the central problem behind WooCommerce database synchronization: your goal is not merely to make the new site load, but to preserve one coherent record of store activity.

A migration can fail in several distinct ways:

A WordPress support thread documents a migration-related report of missing customer orders. Treat it as an individual support case, not evidence that missing orders are common: the reported order issue.

Important: A successful page load proves that the web server can serve pages. It does not prove that order data is current or that a payment callback reaches the right installation.

What a working new site does and does not prove

A homepage check is too narrow. WooCommerce depends on the database and site files working together, and migration can also involve URL changes. The WordPress migration guide covers files, the database, and URL-related migration tasks. Use it as a baseline, then test the store’s actual transaction paths.

Check more than the latest order. Review customer records, product and stock data, order statuses, refunds, and any related data that your extensions rely on. If your store uses subscriptions or other plugins that create linked records, identify those relationships before the rehearsal. Do not assume a clean-looking order list proves every related action or record has moved.

Also keep production and test data distinct. A test database may contain fake orders, altered settings, or a different checkout configuration. Importing it over the live database can replace real activity. WooCommerce recommends backups and testing changes in a staging environment in its update guidance. Apply the same separation when rehearsing a server move.

Before cutover, note what should match between the old and new installations: the store URL, order and customer records, product stock, payment configuration, enabled extensions, and the status of background actions. If a value is intentionally different in staging, document it rather than treating it as a discrepancy to copy blindly.

Choosing a cutover method for your store

Choose the method based on whether you can safely stop writes, not on a promise of zero downtime. A short, planned pause in checkout is easier to reason about than two live databases. Incremental synchronization can reduce the pause only if you have tested that it captures every relevant write and can be validated. Running both stores live without a reliable synchronization plan creates competing records.

Cutover approach When it can fit Main risk Decision
Freeze checkout, then make the final database sync You can announce a short order pause and control the old store Customers may be unable to complete checkout during the agreed window Prefer this when the team can coordinate the pause and verify the final copy
Use a tested incremental synchronization process You have a method that captures and reconciles all relevant changes Missing or conflicting writes may be hard to detect if the process is untested Use only after a rehearsal proves what is synchronized and how you validate it
Keep old and new stores accepting orders There is no controlled handoff or reliable sync Orders, refunds, stock, and payment events can diverge Do not use this as a migration plan

The table is a decision aid, not a guarantee that any particular tool can synchronize your extensions or payment workflow. WooCommerce’s guidance on backups and staging tests supports a rehearsal-first approach, but compatibility depends on your setup.

A final database sync must also be done with care. WordPress documents database backup practices in its database backup guidance. Keep a recoverable copy before the cutover and verify that you can restore it; a file sitting on the same server is not a complete recovery plan if that server becomes unavailable.

Handling new orders during the migration

First decide whether you can temporarily stop checkout. If you can, set a clear start and end condition for the pause, tell the people handling orders, and prevent new writes to the old installation before creating the final production copy. If you cannot stop writes, proceed only with an incremental synchronization method that has already been tested against your store’s database and extensions.

Do not rely on “we will merge the databases later.” A WooCommerce database is not a simple spreadsheet where two copies can safely be appended. An order may be associated with customer data, payment records, stock changes, notes, refunds, and plugin-specific information. A blind merge can create duplicate or inconsistent records.

For the final synchronization, use a sequence your team has rehearsed:

Use the WordPress migration guidance for file, database, and URL handling, and rehearse URL replacement before production. If you use WP-CLI, its search-replace command documentation explains how the command handles serialized data. A plain text replacement can damage serialized values, so do not improvise a database-wide replacement on the live copy.

Handling new WooCommerce orders during the move

If you can pause checkout, freeze writes before the final copy and do not reopen until the new installation passes checks. If you cannot pause, use only a rehearsed incremental sync that captures all relevant store activity. If neither condition is met, delay the cutover. Letting both servers accept orders without a reliable synchronization plan risks split records.

Responding to orders still reaching the old server

Do not assume the order will appear on the new server. Pause checkout on the old installation if possible, record the order and its payment state, and determine which installation is the authoritative production store. Avoid copying that one order manually into a live database until you understand its related payment, stock, and customer records. If writes are still reaching both servers, stop the cutover and follow the agreed recovery plan rather than continuing to direct more traffic.

Verifying payment callbacks and scheduled work

A successful checkout test should cover the whole path, not just the confirmation page. Verify that the new site can create an order, that its status changes as expected, that the payment provider’s notification reaches the correct installation, and that the customer and store notifications behave as intended. WooCommerce’s documentation on testing orders explains how to test order flows; use a safe method appropriate to your payment provider and avoid treating a live customer charge as a test.

Payment systems can have their own domain verification or callback requirements. Check the provider’s current settings and test its callback after the site is moved. Do not assume that changing DNS updates a provider configuration, or that every payment method transfers without further action. For WooCommerce webhooks, review the endpoint configuration and delivery logs using the official webhook documentation. If notifications fail, use WooCommerce’s order and payment notification troubleshooting guidance to narrow down the cause.

Check scheduled work as well. WooCommerce Action Scheduler runs queued actions that may support store operations or extensions. After migration, inspect pending, completed, and failed actions in the store’s scheduled actions screen. The Action Scheduler documentation explains where to review scheduled actions. A site can display correctly while background tasks are delayed or failing.

The migration timeline should include these milestones:

Do not promise yourself zero downtime. The safe duration depends on your store, extensions, payment setup, and the method you have actually tested. Plan the pause you can control.

Stop conditions and rollback decisions

Set stop conditions before the DNS change. Do not wait until a customer reports a missing order to decide what counts as a failure. Pause release if any of these checks fails:

If the new store fails validation, stop accepting orders there and follow the rollback plan your team agreed on. Restore the old store as the active destination only after you know which database contains the authoritative transactions and how any activity on the new store will be handled. Never blindly merge two databases in both directions. Keep a written record of the cutover time, the last confirmed order on each installation, the tests performed, and the decision to release or roll back.

Use this checkable list during the change:

This order-consistency plan matters more than a headline server specification. Still, the destination affects how you operate the store. Before scheduling the move, compare the target environment’s operating system, disk arrangement, bandwidth, and access method with your application and recovery requirements. AmdBit’s server configuration options and current pricing information are the places to check those details; do not assume server rental includes migration, backups, or hands-on operating support.

If your current shared host or VPS is constrained by competing workloads, limited control over the environment, or unclear resource limits, an AMD dedicated physical server may be a better fit for a store that needs consistent, long-running capacity. It will not prevent order loss by itself: you still need a tested cutover, a recoverable backup, and a clear write-freeze or synchronization plan.

When you are ready to choose the destination, review AmdBit’s current server options against your store’s system, storage, and bandwidth needs, then set the migration window around the way your WooCommerce site writes orders.

Further reading

Prepare Your WooCommerce Migration on AmdBit

Choose a dedicated AMD EPYC 7543P server to stage and test your store before cutover.