ytgov / yukon-ca

New version of Yukon.ca, built on Drupal 10
1 stars 3 forks source link

Issue #332 - Split Data and Media Migrations #333

Closed w3creatives closed 8 months ago

w3creatives commented 8 months ago

Steps:

  1. Create a fresh Drupal 10 installation with minimal theme.
  2. Run the following command ./vendor/bin/drush config-get "system.site" uuid. This step will display the new UUID that can be copied and replaced in the following file at line 4: [web-root]/config/sync/system.site.yml
  3. Run ./vendor/bin/drush cim -y to copy config files until you see the success message for completion.
  4. Copy all the media files in [web=root]/docroot/sites/default/files. This folder content should be the same as Drupal 7 version of Yukon.ca
  5. Run media migration first using this command in terminal ./vendor/bin/drush migrate:import yukon_migrate_files__public. This should run for around 2 hours as per the current data size.
  6. Run ./vendor/bin/drush cr to clear the cache, if required.
  7. After completing the media migration you can run the data migration using this command in terminal: ./vendor/bin/drush migrate:import --group=legacy --continue-on-failure. This should run for around 2.5 hours as per the current data size.

Notes:

  1. Step 5 will skip the media files if already present in the D10 files folder.
  2. This is a modified version of yukon_migrate module to split migration into two groups. For full migration, please use the original module.