- Setup your Drupal 7 site in Lando.
- Setup your Drupal 8 site in Lando.
In your .lando.yml of your Drupal 8 site add an additional DB service as such and run a
services: d7db: type: mariadb creds: user: drupal7db password: drupal7db database: drupal7db
Create a custom module in your Drupal 8 site that uses Modules listed above as dependent.
- Export your Drupal 7 site's DB with
lando db-export dump.sql.gz
Add a settings.local.php into your Drupal 8 site:
$databases['migrate']['default'] = array( 'database' => 'drupal7db', 'username' => 'drupal7db', 'password' => 'drupal7db', 'prefix' => '', 'host' => 'd7db', 'port' => '3306', 'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql', 'driver' => 'mysql', );
Copy your DB dump into the root of your Drupal 8 site.
Import the Drupal 7 DB into your Drupal 8 site with:
lando db-import dump.sql.gz --host d7db --database drupal7db
Note this is busted as of beta-35, see this issue for a work around until this is addressed
In your D8 site run the following:
lando drush migrate-upgrade --legacy-db-key=migrate --configure-only lando drush config-export --destination=/tmp/migrate lando ssh cp /tmp/migrate/migrate_plus.* /app/path/to/custom-migrate-module/config/install
Remove any files you don't want to migrate. Make sure to read the required dependencies at the bottom of each yml file.
Change the group config if it isn't already: In your files named migrate_plus.migration_group.GROUP-NAME.yml, edit the last line: shared_configuration: null to the following:
shared_configuration: source: key: migrate
lando drush msto see the status of the migration. Use the migration commands as you need from this point on.