09
Mar

Migrating Drupal from one folder (or one server) to another is not always as simple as just copying the files and database. All the file paths, configuration data, content, menus & structure are stored in the Drupal database. Hence, just a blind copy will break the new Drupal system.

Steps to migrate your drupal installation from on folder to another (or one server to another)

  1. Copy all the files from the current destination to the new destination
  2. Make the database changes in sites/default/settings.php
  3. Browse the new destination and complete the new Drupal installation steps
  4. Login into the Admin area and ensure that the same modules are enabled in both the installations.
  5. Install the ‘Back and Migrate‘ module in the current Drupal installation
  6. Take a backup of the current system and download it. It will be a .mysql file
  7. Install the same ‘Backup and Migrate‘ module in the new Drupal site
  8. Upload the downloaded backup file to the sites/default/files/backup_migrate/manual folder in the destination Drupal site.
  9. Login into the Admin area in the new Drupal and browse
    http://[my-new-drupal-url]/admin/content/backup_migrate/destination/list/files/manual
  10. Here you will see the list of backup files to choose from. Click the ‘Restore‘ link next to the backup file that you just uploaded.

Thats it! Now all your menus, content etc should be imported correctly.

NOTE: Restoring will delete some or all of your data and cannot be undone. Always test your backups on a non-production server!

, ,

gayatri.sa
Posted by on 09 Mar 2010 by gayatri.sa in Drupal

Add reply

*