Add some drush commands to backup/restore the development environment for travel.

Comments

MichaelCole’s picture

Hi Izmeez,

Glad your taking value from it.

I plan to put up some more screencasts on YouTube to show how to use it. It's not totally obvious at first. http://www.youtube.com/user/drupalquickstart

As to the upgrade path? Well, that depends on a couple of things.

Do you really need to upgrade? Unless you need specific new features, it may be better to continue with what you've got. (For me, software is the deliverable, dev env is the toolset).

We use QS 0.6 for a client and have customized it so heavily, we won't upgrade. We're starting a new project in October for which we'll use QS 0.7. (Both are non-drupal projects btw).

If you do choose to upgrade, how to do it depends on what you've customized. If you just want to move your sites, then here's what I'd do:

1) Backup your databases with one of the following methods:
command line:

mkdir ~/websites/backup
mysqldump -u root -p quickstart > ~/websites/backup/backup.sql

2) Backup DNS file /etc/hosts
cp /etc/hosts ~/websites/backup/hosts

3) Backup Apache config files

cp /etc/apache2/sites-enabled ~/websites/backup

4) Tarball the whole directory
<code> tar -czf websites.tar.gz ~/websites

5) Move the tarball to the new virtual machine and unzip it into the websites folder

6) Put /etc/hosts back (so DNS works)

7) Put /etc/apache2/sites-enabled back. (so Apache works)

8) Restart apache: $ sudo apache2ctl restart

This would make a good drush command (dev-backup and dev-restore). I'll add it to the list. http://drupal.org/node/910288

Izzy, I havn't tested this, so if you run into problems and figure them out, be sure to post back any suggestions.

Also, you might skip a couple steps if you're tracking code/config with subversion/git.

Cheers,

Mike

MichaelCole’s picture

Status: Active » Closed (won't fix)
izmeez’s picture

subscribing, I see this has been added as an issue possibly from a comment in the groups posts. Thanks.

I haven't wrapped my mind around this as Quickstart can be used in a variety of ways.

I guess one thought is that it might be better to build Quickstart on an LTS version of Ubuntu for this very reason.