TwelvestoneProjects and Theory

Drupal app versioning


Sign in

  • Waiting for Godot ( 730 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 5.1 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.9 k posts )
    general front end design an...
  • Back End ( 9.7 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
DontBogartMe
 
2010-07-13

I'm about to start a new Drupal app (my first one) and would like to have some version control - not just of the source code, but also of the database.

Has anyone had any experience of that? Do I have to manually take DB snapshots and include them in the versions, or is there a better way?

baron ruhstoff
 
2010-07-13

The Backup & Migrate module. :thumbsup:

Install it, then set up a cron job. Make it part of your default installation profile.

DontBogartMe
 
2010-07-13

thanks, that'll probably come in handy later on, but what I need now is a versioning plan to aid in the development of the site - e.g. to log the changes in the database structure as things are added etc, as well as logging the source code changes. Like you can do the source code part with subversion for instance, but what about the database structure? I'm not too well versed in subversion to be honest, used it but not set it all up.

baron ruhstoff
 
2010-07-13

Okay. B&M exports the DB as SQL and/or txt files, so you should not have any problem as long as the destination folder (usually deploy/sites/default/files/backup-and-migrate/) is versioned. During development I will run backups manually (backup, then commit) and in production set up a cron job to run on a schedule.

Is that in line with what you wanted?

DontBogartMe
 
2010-07-13

hmm ok, sound like it might do the trick. A roll back would involve taking the db text file out of that folder and overwriting the db with it I guess.

baron ruhstoff
 
2010-07-13

Not necessarily. B&M provides the ability to roll back to any previously saved version:

admin/content/backup_migrate/restore "Restore Database" select the file to which you want to roll back from the "saved backups" directory voila!

So yeah, technically the DB is getting overwritten but that is unavoidable. The main benefit comes in terms of making the workflow relatively seamless.

DontBogartMe
 
2010-07-13

gonna have to give this a whirl I think, thanks Baron.

baron ruhstoff
 
2010-07-13

:thumbsup:

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneProjects and Theory

Drupal app versioning