Effective Drupal 8 migration: Its 5 Main Phases
- analyze the site to be migrated, see how its content is structured, how it looks, what it uses
- to examine its taxonomy terms, users, menus, fields, content types, in a few words: don't let anything skip your "inspection"
- once you've closely analyzed the source website, it's time you (and your team and client) took some major decisions: what stays on, what should be removed, what corrections/modifications should be performed. To put it simply: it's now that you plan out the content that the future Drupal 8 site will display
- at this stage you'll first overview and then make use of the contributed modules, you'll work with Migrate API, configure and run your migration
- hopefully (for this is the best practice for reducing downtime) at this phase of the whole migration process you'll opt for a near-continuous content migration variant
- set up a timeline and be prepared to mitigate any risks that might arise (either before or post launching)
A Drupal 8 Content Migration Example
- Migrate Module: part of Drupal 8 core, this module will serve you both with the content and the site's configuration migration process
- Migrate Plus: comes with additional functionality (you get to migrate from XML, JSON and CSV formats)
- Drupal Upgrade: it's the one to install if you want to operate in a web interface (which will enable you to specify the files directory and the database of your core site. Once the migration has been completed, you'll get to see all the successfully migrated entities in the report that it will provide you).
1. Migrate Your Website's Background
- source: it informs migrate about the “source” that our content comes from .
- destination: it lets migrate know what exactly is it that we want to generate (in the above example: nodes)
- process: this section informs migrate that it should turn JSON into Drupal fields (summary turns into node body, while the name from JSON becomes the node title)
2. Write a Process Plugin
3. Run Migration
- check whether all the proper modules are installed: the Migrate Tools module, migrate_source_json and the custom one, with the process plugin that you will have already written
- import your YAML file
- run migration with Drush's migrate commands: drush migrate-import shows
We do Web development
Go to our Web development page!