Print

WP Staging Best Practices and Recommendations

​Question: Once we update plugins/themes in WP staging, do we once upgraded, PUSH select and always / SELECT ALL DB TABLES AND ALSO all files?

Answer: As long as you did not change any content/data on the live site after creating the staging site you can select all tables and files to push the staging site to live.

​If you changed data on it or even use a visual editor which stores data in the tables _posts,_postmeta you will need to do this differently otherwise you will lose the new content on the live site.

​In that case, you will either repeat the content changes on the staging site first or you will need to exclude all tables from the pushing process and just copy over the files and folders only.

​You can keep the _options table selected, though. This table contains all the plugin settings.

You can read this article which explains the WordPress DB structure to get a better understanding:
https://wp-staging.com/docs/the-wordpress-database-structure/

​If you are still unsure we recommend to copy over updated files only and exclude all DB tables or to update data on the staging site only.
​This will ensure that you do not lose any new content on your live site after pushing.