WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just recovered from a pretty bad crash using Server 2008 Shadow copy. Ultimatly I didn't lose more than a few hours of work but a loss is a loss.

I've decided to move to version control to prevent this from happening again. What I'm interested in knowing is how does one handle the mysql directory? And how do you handle a development site and a live site (trunk and branch) running at the same time? I assume you wouldn't be able to move a development database to production with the posts being consistently updated.

Any thoughts would be appreciated.

share|improve this question
I am also curious in find good solution... Currently we us svn for source control, per wp install we use db-manager plugin which sends out a db dump email (we set this to weekly), the most important thing i think is to have a db dump frequently (nightly if you can). We usually use staging/dev to test new templates/features. We currently have a problem with wordpress content going from staging to production, creating content on staging and then recreating that content in production, we have yet to stream line this process. – farinspace Mar 2 '11 at 21:05
up vote 4 down vote accepted

Have a look at this older question: Easily Move a WordPress Install from Development to Production?. It covers migration and deployment of WP installations.

For your more immediate issue, do backups of your database. Use a backup plugin (WP-DB-Backup is what I use, find it on the WP plugins repository) to handle this for you. You needn't worry as much about the core WP files as those can be loaded up again. You do need to keep backups of your theme files.

Also take a look at this article: http://www.noeltock.com/web-design/wordpress/fast-furious-wordpress-theme-development-pt1/. It's about using source control to simplify deployments. It's something I want to give a try!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.