WordPress: Site replication

WordPress only

Experiment with https://wordpress.org/plugins/duplicator/

site: art4kids.gallery updated from art4kids.local

  1. installation and activation
  2. results
  3. bugs

Procedure

  1. installed the plugin and activated
  2. it takes two minutes to analysis and create an installable backup of the site which can be unpacked and rebuild the database
  3. looks like it restores the database, which is not a good move as it would disturb the entity relationship
  4. summary: do not use this.

A better procedure without this plugin appears to be:

  1. run site backups on live (must backup the databases!)
  2. the live site has primary data which must be preserved
  3. we have installed and configured the plugin on the dev site
  4. the new code is in git
  5. git push the selected plugin directories and theme updates (reversible)
  6. database has to be selective updating which means hand configuration of plugins and manual database updating (must be reversible) on live
  7. only git the wp-content so updates do not worry you.  Re-run the updates on dev first and then run them on live without concern.  With a limited set of plugins updates are not going to be risky.  Updates also update the database sometimes, let the plugin do it rather than intervening manually.
  8. after a dev->live update, take another database snapshot
  9. give LIVE a regression test to ensure it has not broken anything

Anyone have a better method to support local development?