Title: Migrating data back and forth between live and dev WordPress install
Last modified: August 31, 2016

---

# Migrating data back and forth between live and dev WordPress install

 *  [Balint Toth](https://wordpress.org/support/users/tothbalint/)
 * (@tothbalint)
 * [10 years ago](https://wordpress.org/support/topic/migrating-data-back-and-forth-between-live-and-dev-wordpress-install/)
 * Hello!
 * I am working on a pretty old and bloated WordPress installation which I would
   like to update and clean-up. The process would take considerable time, so the
   question arises, how can I keep in sync the dev install with the live site? I
   have migrated the live site to a different server, where I would do some changes,
   update plugins and installs, remove unused plugins, change the theme and maybe
   introduce some custom post types too. The issue is, during that time, the live
   site with no modifications is still online, and new posts, pages, and comments
   are added to the database every day. Ideally at the end of the development I 
   would like to change the current live site to the modified one from the dev environment.
   How can I make sure that I don’t loose any new data? (meaning added to the live
   site after the migration to dev)? Is there some technique or best practices to
   it?
 * Thank you very much!
 * Cheers,
    Balint

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [dimitris33](https://wordpress.org/support/users/dimitris33/)
 * (@dimitris33)
 * [10 years ago](https://wordpress.org/support/topic/migrating-data-back-and-forth-between-live-and-dev-wordpress-install/#post-7298998)
 * Hi Balint,
 * i think one thing you can do is make sure your live site uses the latest WP version.
   All your data is stored there so when you are ready, you can export it and use
   it in your new site.
 *  [JohnPope](https://wordpress.org/support/users/johnpope/)
 * (@johnpope)
 * [10 years ago](https://wordpress.org/support/topic/migrating-data-back-and-forth-between-live-and-dev-wordpress-install/#post-7298999)
 * Have you looked at VersionPress?
 * [https://versionpress.net/](https://versionpress.net/)
 *  Thread Starter [Balint Toth](https://wordpress.org/support/users/tothbalint/)
 * (@tothbalint)
 * [10 years ago](https://wordpress.org/support/topic/migrating-data-back-and-forth-between-live-and-dev-wordpress-install/#post-7299028)
 * My biggest source of worrying is that the site uses an old theme and some abandoned
   plugins. Because of that, I would like to move the data from those plugins to
   some custom post types. The live site is 4.1.1, and the owner says he tried to
   do some kind of update, but had to roll back from backups because it broke the
   site. That is why I am hesitant to do any kind of WordPress update on the live
   site… It has high visitor count, and one of the important requests was that the
   downtime should be absolutely minimal.
 * I was thinking of preparing the custom post types and after making some manual
   migration script to copy the data to the cpt tables, but I am not too knowledgeable
   in that field, are there any caveats to this? Should I avoid “manually” writing
   into the cpt tables, and use some kind of other method?
 *  [dimitris33](https://wordpress.org/support/users/dimitris33/)
 * (@dimitris33)
 * [10 years ago](https://wordpress.org/support/topic/migrating-data-back-and-forth-between-live-and-dev-wordpress-install/#post-7299038)
 * In your position i would choose the safest way to update the site.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Migrating data back and forth between live and dev WordPress install’
is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [dimitris33](https://wordpress.org/support/users/dimitris33/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/migrating-data-back-and-forth-between-live-and-dev-wordpress-install/#post-7299038)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
