Project

General

Profile

How to restore CDM DataPortal database dumps

Preparation

If you are about to host multiple data portals on the same machine it is recommended to install of them in a Drupal multi site setup.

If the site sub folders are named after a specific pattern you should be able to use the dataportal-admin helper scripts which allow you to perform important management tasks automatically on each of the DataPortals installed:

Install the dataportal-admin helper scripts

  1. Install Drush http://docs.drush.org/en/8.x/install/
  2. Download the dataportal-admin helper scripts from http://dev.e-taxonomy.eu/trac/browser/trunk/server-scripts/dataportal-admin

and make them available via your $PATH environment variable.

  1. Edit the config.template and save it as config.

restore individual dumps

NOTE: It is recommendet to follow these instructions without opening the modules or themes admin pages in Drupal before you completed the steps below.

  1. Restore the database dump to your database server
  2. Edit the database connect url (the database prefix should end with an underscore character '_') in the according the Drupal site settings.php
  3. Make sure the http server is configured to map the site uri like http://edit.test/d7/new_site/ (see DataPortalDeveloperEnvironmentSetupLinux for details on setting up the virtual host edit.test in apache)

Check if the site is configured correctly. In the drupal root execute:

drush -l http://edit.test/d7/new_site/ st

and check the out put for the correct database, settings.php file etc.

  1. run drupal-fix-missing-modules.sh which is available at https://dev.e-taxonomy.eu/old/trac/browser/trunk/server-scripts/drupal/drupal-fix-missing-modules.sh ( To install checkout the server-scripts in /opt/)
/opt/server-scripts/drupal/drupal-fix-missing-modules.sh http://edit.test/d7/new_site/

alternatively you can also use the registry-rebuild command in case the module are all available:

drush -l http://edit.test/d7/new_site/ rr
Add picture from clipboard (Maximum size: 40 MB)