Posted 10/08/2010 - 12:20 by State68
Migrating a Drupal site from one development platform to another can be a real pain. Nicole Bluto wrote a great blog post for the 2009 LA Drupalcamp on how to migrate a Drupal 6 site cleanly:
http://www.drupalcampla.nicolebluto.com/node/3
Here's a distilled, step-through version of that post, tested between two OS X accounts, both running XAMPP:
The export
- Download and install http://drupal.org/project/backup_migrate
- Navigate to admin/content/backup_migrate
- The default settings should say Backup from Default Database to Manual Backups Directory using Default Settings – check that these are selected in the drop-downs, and hit “Backup now”. Your site’s database will be backed up to sites/all/files/backup_migrate/manual
- Take a copy of the sites/ folder – this now contains a backup of your site’s database, too.
The import
- Download a fresh D6 install from http://drupal.org/project/drupal
- Unpack the D6 install to your localhost, but don’t run through the install process
- Overwrite the sites/ folder in your fresh D6 install with the sites/ folder copied in step 4 of the export process, above
- Create a new database in phpMyAdmin
- Import the database from sites/all/files/backup_migrate/manual
- Change $db_url in sites/default/settings.php to point at the newly created database
Save settings.php, cross your fingers, and boot your site!
