How to push changes between your WordPress staging and live site

By Jelena Janić Posted Category Guides and resources Topics Tips and tricks, WordPress,

A staging site lets you test themes, plugins, and layout changes safely, but moving those changes to a live WordPress install can be nerve racking. If you need to push staging site without overwriting the database, this guide walks through practical, low-risk way to transfer code, media, and configuration without destroying live content like posts, users, or WooCommerce orders. You will get a preflight checklist, step by step instructions, FAQs and a recommended toolchain featuring UpdraftPlus for backups, cloning, and selective restores.

Why you should avoid overwriting the live database

Section titled Why you should avoid overwriting the live database

The live database contains dynamic content, user accounts, and transactional records. Overwriting it removes any changes made on production since the staging snapshot, such as new posts, comments, or orders. Most teams therefore separate file changes from database changes and selectively deploy only what is needed.

For many use cases, pushing files only is the fastest and safest route. If you absolutely must change content stored in the DB, identify exactly which tables need updates and apply them carefully. Note that true automated database merging is not a solved problem and most migration tools cannot merge two active databases automatically. Plan accordingly.

Preflight checklist before you push

Section titled Preflight checklist before you push
  • Take a full backup of the live site, including files and database
  • Take a backup of the staging site you will push from
  • Put the live site in maintenance mode if needed
  • Confirm staging uses a separate database from production
  • Note any time-sensitive content (orders, form submissions) that may arrive during deployment
  • Test the push workflow on an UpdraftClone where possible

Test before you push

UpdraftPlus Premium not only gives you reliable backups and selective restore options, it also includes free UpdraftClone tokens. That means you can create a safe one-time clone of your site to test the push process before going live.

Push changes safely with UpdraftClone and UpdraftPlus selective restore

Section titled Push changes safely with UpdraftClone and UpdraftPlus selective restore

Best for site owners who prefer GUI workflows and safe rollback.

UpdraftPlus makes backups and lets you restore specific components (plugins, themes, uploads, database) rather than everything. Use the restore wizard to pick what to apply.

Steps to push safely with UpdraftPlus

Section titled Steps to push safely with UpdraftPlus
  1. Go to the live site and create a full backup (including the files and the database)
  2. Go to the staging site and create a backup where the database is excluded
  3. On production, upload or locate the staging backup in Existing Backups
  4. Choose Restore and select only the components you want to overwrite, for example, themes and plugins
  5. Run the restore and test

This approach gives a controlled way to push code and media without touching the live database.

Scenario: You updated a theme and one custom plugin on staging; you want those changes live without touching posts or orders.

  1. Backup production (files + DB) with UpdraftPlus.
UpdraftPlus dashboard showing how to backup

2. Backup staging with Database unchecked (files-only; Themes + Plugins).

Uncheck database when taking a backup

3. Optional: Create an UpdraftClone of production and upload the staging backup to the clone.

Uploading your backup files to the clone site

4. Optional: In the clone, Restore → Themes + Plugins only, DB unchecked → test.

Restoring your files on the clone site

5. On production, upload the same staging backup (if it’s not already listed).

6. Restore → Themes + Plugins only, DB unchecked → flush caches → smoke test key flows.

This ensures the code updates are live while the production database remains intact.

With UpdraftPlus Premium, you get finer control:

  • Select specific database tables (like wp-options) to restore alongside the files.
  • Include/exclude particular plugins, so you could restore just the single custom plugin instead of all plugins.

Always treat the database like sacred ground. For layout and code changes, push files only. When a database change is unavoidable, export and import only the necessary tables and validate on a clone first.

Ivan Đukić – Product Manager

Pushing changes from staging to live doesn’t have to mean risking your database. By using UpdraftPlus Premium’s selective restore and free clone tokens, you can move code and files with confidence while keeping live content untouched. Always test on a clone first, then push only what’s needed.

Don’t risk it without a backup

It only takes one mistake to lose important data. UpdraftPlus makes it easy to take a complete backup of your live site before deploying changes. With free UpdraftClone tokens included in Premium, you can also test everything on a safe copy of your site before touching production.

About the author

Profile picture of Jelena, the product manager for WP-Optimize

Jelena Janić

Jelena is the Product Manager for UpdraftPlus and WP-Optimize. With seven years of experience, she’s taken on many roles – from tester to developer and now product manager. Along the way, she noticed a disconnect between how products are built and what customers need, sparking a passion for steering products toward solutions that truly serve the people who use them. Today, she ensures every WP-Optimize development decision is geared toward boosting WordPress website performance, enhancing usability, and increasing customer satisfaction.

More stories

Our plugins

Try TeamUpdraft’s full suite of WordPress plugins.

  • UpdraftPlus

    Back up, restore and migrate your WordPress website with UpdraftPlus

  • WP-Optimize

    Speed up and optimize your WordPress website. Cache your site, clean the database and compress images

  • UpdraftCentral

    Centrally manage all your WordPress websites’ plugins, updates, backups, users, pages and posts from one location

  • Burst Statistics

    Privacy-friendly analytics for your WordPress site. Get insights without compromising your visitors’ privacy