What is the best way to merge development database with production?

Spencer Hill

We develop WordPress websites and we have returning customers who request revisions to their website that require us to develop in a development environment before publishing to production (live). The challenge has always been how to merge two WordPress databases that are out of sync but have mutually new content that must be retained.

This content ranges from Pages, Posts and Comments to Plugin settings and other subtle information. So we export both databases and use FileMerge, for Mac, to display the differences and manually merge them. This would be fine if the WordPress databases didn't contain so much meta information that is, otherwise, human unreadable (examples below).

My question is whether or not someone out there has a recommendation on how to solve this problem? Essentially if we could just omit the items below (assuming that's safe to do?) then we would be perfectly happy continuing to use FileMerge. But with those items it makes it feel like we're decrypting the worlds longest password.

FYI WP Migrate DB (including Pro) is not capable of this. We spoke with the authors.

Thanks.

The following is a list of database records that I think could be omitted without causing any conflicts in the database. - _transient_random_seed - active_plugins "a" value (which I believe represents the number of active Plugins) - _site_transienty_timeout_browser - recently_edited - db_version - cron - _transient_timeout_feed_mod - _transient_feed_mode - rewrite_rules - Plugin Versions - _edit_locks

Egnaro

I've been looking at two potential solutions to this problem, however both have the limitation of requiring php exec() on the development/staging server. So hosts like wpengine (which we're using) won't work with them.

If this isn't a limitation for you then check out https://revisr.io/ or http://versionpress.net/

Revisr is open source and VersionPress is currently using a paid Early Access Program to support development. Both use git to manage all aspects of Wordpress syncing from the WP-Admin.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

What is the best way to merge hashes?

Best way to Manage Development, Testing, and Production builds with different settings and name

linux + what the best way to merge files

What is the best way to merge 2 byte arrays?

What is the best way to merge multiple Flink DataStreams?

What is the best way to reduce and merge a collection of objects

What is the best way to merge nested arrays

What is the best way to do Java development in Emacs?

What's the best development to production workflow for DNN websites?

What is the best practice in production and development for .catch console error?

Is database replication the way to go to keep production and development databases in sync?

What is the best way to run EF migration on production server?

What is the best way to deploy a tensorflow trained graph into production?

What is the correct way to identify production & development environment in AWS CDK?

What is the best way to save connection strings in a database?

What`s the best way to store shapes in a Database

What is the best way to 'ping' a database via JDBC?

What is the best way to effient MySQL Database

What would be the best way to listen to changes in a database?

What is the best way to take backup of sqlite database?

What is the Best way for LARAVEL database connection

What is the best way to optimize a massive CouchDB database?

What's the best way to normalise this database?

What is the best way of using database host?

What is the best way to merge a feature into an older release branch?

What is the best (and safest) way to merge a Git branch into master?

What is the best way to "merge" 2 arrays by each value?

What is best way to merge detached entities to entity manager in JPA

What is the best way to resolve merge conflicts in .swm files?