Moving Data Between the Development Environment and the Production

If your website plan is WP-Pro or larger, we can set up a staging enironment for site development. A common use case is to develop a new version of the site in staging environment and when it is ready copy the site to the production environment.

The basic task is to copy new theme files and database from staging to production, here's how:

  1. Take backups from both environments (wp-backup)
  2. Be very careful, check the direction where you are moving data
  3. Follow our instructions at:

Resetting staging environment

Replacing staging environment with a copy of the current production environment is easy, but be careful! Resetting staging removes all data and replaces it with a copy of production environment data, so take a backup first if there is anything worth saving in staging.

After that you can reset staging by running the following command in production environment:

wp-shadow-reset <staging-instanssi># e.g.wp-shadow-reset mysite_123abc

You can find out the name of the staging instance with wp-list-env (see CONTAINER).

Did this solve your problem?