Push Staging Site to Production Site

Migrating and pushing data and modifications from your staging website to your production site is very easy with WP STAGING | PRO and does not cost you more than a few clicks.

This tutorial explains how to migrate your site by using the WP STAGING | PRO version.

Read the instructions below very carefully, and do not miss any step!

If you like to convert your staging site to the production site with WP STAGING basic version instead, please read that article!

Video: Migrate your WordPress Staging Site to the Production Site

The video below shows how WP STAGING | PRO pushes data from the staging site to the production one.

WP STAGING | PRO can push all media files, the theme, plugins, and all database data from a WordPress staging website back to a production site.

Push Changes Button
Push Changes Button

Insights: To get a fundamental technical understanding of how WP STAGING moves your Staging Site to Production site and to learn the differences between files and database data, read the articles below:

– How Does WP STAGING Handle WordPress Migration
– The WordPress database structure

 

If you want to copy the data from the staging site to the production site, you have two options:

You can either repeat the operation you did on the staging site manually on the production site or use WP STAGING | PRO’s database migration feature, which is included in the Push Changes feature.

How to Copy Over the Staging Site to the Production Site

Requirements for this tutorial are:

  • The live site which is in production use, e.g. https://example.com
  • The staging site which you’ve previously created with WP STAGING.
  • Plugin WP STAGING | PRO  installed on the production site.

Step 1: Backup the Production and Staging Site

I recommend creating a full site backup with WP STAGING | PRO.

To do this, click on Backup & Migration > Create New Backup.

Enter a name and start the backup process by clicking on Start Backup.

Then save a local copy of the backup to your computer via
Actions > Download.

Step 2: Select the Database Tables

Go to your Production Site > WP STAGING > Start / STAGING

If you have more than one staging site, select the one you want to transfer to the production site and click on the Push Changes button.

Push Changes Button
Push Changes Button

Click on Database Tables and select all the database tables you want to push from the staging site to the production site.
Note that any table chosen will overwrite its pendant on the production site completely.

Select the WordPress Database Tables
Select the WordPress Database Tables

If you want to exclude specific data from being overwritten on the production site, unselect the particular database table from the selection.

Check out the link below to learn more about WordPress core tables and find out which data is available in a certain table.

WooCommerce users, take care!

If you have a shop system like WooCommerce, you obviously do not want to overwrite orders and customer data on the production site. In the links below, you find a description of the WooCommerce database tables and which table you need to exclude to not overwrite any shopping transactional data on your production website and how to export and import WooCommerce orders and user data to your staging site.

Note: If you like to use WP STAGING only for testing plugins and theme files before updating them on the production site, you do not need to push any database tables at all necessarily. Update the plugin and theme files on your staging site using WordPress’s internal automatic plugin updater.

If the updates are working well on the staging site, use the Push Changes button, and all plugins and themes are pushed and copied to the production site.

On the other hand, plugin and theme settings are stored in the database of WordPress. Also, database-based operations like creating new posts, assigned menus, putting widgets to a new place, changing and saving plugin or WordPress-related settings are stored in the database. Installing a new plugin is also a database operation.

So, if you do not want to recreate all settings on the production site, you need to push the database tables, too.

Step 3: Select the Plugins, Themes, and Media Files

Click on Select Files and choose all plugin, media & theme folders containing the data you like to copy over to the production website.

Select the Folders
Select the Folders

You can also define extra folders you like to move to the production site by adding the full absolute path to the text area.

Step 4: Advanced Options

There are a few extra options that you can use.

  • Uninstall all plugins on the production site …
  • Delete wp-content/uploads folder …

These options help you to ensure that your production site will contain only the files that are existing on the staging site when you execute the push process.

For example, you uninstall a specific plugin on the staging site or delete an image. Then you can choose if you want to get this plugin and image deleted on the production site as well.

If you keep these options disabled, nothing on the production site will be deleted and the particular plugin and image will still be available. In the case of a plugin, the plugin then will be deactivated only.

Select the Advanced Options
Select the Advanced Options

Step 5: Start the Push Process

Click on Push Staging Site to Live Site, and the push process starts.

Push Staging Site to Live Site Button
Push Staging Site to Live Site Button

When the push process is done, reload your website, and you’ll see all the new content on your production site.

Note: WordPress sometimes requires you to log in again after a full push.

That’s it; you are done.

 

Updated on August 26, 2021