Let’s create something better together.

If you prefer phones, we have one of those too: +1 978 455 4515










    • Project Info
      icon
    • Technology
      icon
    • Contact Details
      icon







      BackNext








      Back

      Ultimate Guide: How to Migrate Drupal 7 To Drupal 8

      Drupal 8 provides support for D7 to D8 migrations. Since there is no direct upgrade path for Drupal 7 to Drupal 8, you should become familiar with the migration system in Drupal. You can migrate content & configuration from Drupal 7 to Drupal 8.

      In this article we will share two (2) different ways to migrate from Drupal 7 site to Drupal 8

      1 . Migration through Drupal Configuration

      2. Migration Using Drush Command & Composer

      Let’s start….

      1) Migration through Drupal Configuration

      Steps to Migrate Drupal 7 To Drupal 8 Using Site Configuration of Drupal

      Please check that stable Modules in Drupal 7 are also available in Drupal 8 or not.

      Once your installation setup is completed into localhost. This Drupal 8 site will be used as the destination site for the migration process. Tip: Please build the website in the local environment.

      Migrate: – Migrate module provides a flexible framework for Drupal 7 to Drupal 8 content migration

      Migrate Drupal: – Migrate Drupal module provides the capabilities for importing content from Drupal 7 to Drupal 8

      Migrate Drupal UI:-  This module provides below mention characteristics

      1) Show a list of migrations that can be filtered by migration tags
      2) Create new migrations from scratch
      3) Edit and delete existing migrations.
      4) Configure advanced process pipelines, E.g. configures the process plugins for each field.
      5) Build migration templates into migration config entities.

      Please refer to the below screenshot for more details

      drupal install migration

      www.example.com/upgrade

      Once the Migrate module is enabledyou need to navigate to the upgrade path. Further steps will be available on the upgrade path to proceed. So, read and follow the migration steps carefully. Then press the continue button and open the migration screen. Please refer to the image below.

      drupal 8 upgradation steps

      Step 5 – Make Sure That Access To The Database Of Drupal 7 Is Available From Drupal 8 Site

      Before performing the migration, you must check that you have full access to your Drupal 7 database and private files that you want to migrate to the Drupal 8 website.

      drupal version of the site

      Step 6 – If The Old Site Has Private Files, Copy Its File’s Directory And That Must Also Be Accessible On The Host Of Drupal 8 Site

      You must enable the permission in your drupal7 private files that can be accessible in drupal8 sites.

      Step 7 – Enable All Modules On Drupal 8 Site That Are Enabled On Drupal 7 Site.

      For example, if the old site uses the mark-up module, then enable the mark-up module on the new site so the existing data can be imported easily.

      Step 8 – Do Not Add New Content To The New Site Before Migration. Any Existing Content Will Be Overwritten In The Migration Process.

      Please make sure that you don’t add any new content before migrating the database. You can always add the content after the successful migration to the new version

      Step 9 – Put Drupal 8 Site Into Maintenance Mode

      Go to.
      -admin/config/development/maintenance
      -Save Configuration.

      drupal message maintenance modeStep 10 – Continue The Upgrade Process

      Once you click perform upgrade button it will start migrating from Drupal 7 to Drupal 8.

      drupal modules upgraded

      Step 11 – Start The Migration

      The migration process will take some time, depending on the size of the website. In case of errors, just reload the web page.

      drupal running upgradation

      Once it is completed successfully you will be able to see the below screen.

      Maintenance mode

      Finish….

      This process is very simple and can be done easily with some technical knowledge by using Drupal modules & configurations.

      Second Approach….

      Before performing the migration, you must check that you have full access to your Drupal 7 database and private files that you want to migrate to the Drupal 8 website.

      drupal version of the site

      You must enable the permission in your drupal7 private files that can be accessible in drupal8 sites.

      For example, if the old site uses the mark-up module, then enable the mark-up module on the new site so the existing data can be imported easily.

      Please make sure that you don’t add any new content before migrating the database. You can always add the content after the successful migration to the new version.

      Go to.
      -admin/config/development/maintenance
      -Save Configuration.

      drupal message maintenance mode

      Once you click perform upgrade button it will start migrating from Drupal 7 to Drupal 8.

      drupal 8 modules will be upgraded

      The migration process will take some time, depending on the size of the website. In case of errors, just reload the web page.

      drupal running upgradation

      Once it is completed successfully you will be able to see the below screen.

      operating in the maintenance mode

      Finish….

      This process is very simple and can be done easily with some technical knowledge by using Drupal modules & configurations.

      Second Approach….

      2) Migration Using Drush Command & Composer

      Required Modules for Migration using Drush Command

      1. Migrate Upgrade

      Provides Drush support for upgrading from Drupal 7 to Drupal 8.

      2. Migrate Plus

      Provides extensions to core migration framework functionality.

      3. Migrate Tools

      Provides Drush commands which can be used in the migration process.

      Let’s initiate Drupal 7 to Drupal 8 migration using Drush command.

      Please install the composer first by using the below command.

      Command : “composer install”

      If you have already installed the composer, make sure it’s updated. If it’s not updated, then you can update the composer using below command.

      Command :
      “composer update”
      Update Composer

      drupal compatibility

      If your Composer doesn’t have Drush listed as a dependency, you can install Drush from the command line as follows

      Command:
      “composer require drush/drush”

      Make sure your Drush version is up to date

      You can check your drush version with the following command.

      Command:-

      “drush –version”
      installing drupal composer

      Now start your migration with following drush command

      Command

      “drush ://user:password@server/db — ://example.com –configure-only”

      Replace below mention value with your values in the above command

      -‘user’ is the username of the source database

      -‘password’ is the source database user’s password

      -‘server’ is the source database server

      -‘db’ is the source database
      drupal migration exporting

      After migration, check migration status with the following command
      Command:-
      “drush migrate-status”

      drupal 7 upgradation

      To check the migration list, please use the following command
      Command
      “drush migrate-import –all”

      drupal migration terminal

      Go to the structure->migration

      drupal migration process

      Check the migration group ‘import from drupal 7’ list migration and useful data will import it.

      add drupal migration group

      After clicking on list migration button all upgraded data will be visible. Click to the execute button and data will be imported.

      drupal migration name and status

      Once you click on the execute button, you will be redirected to the page with below mention options.

      drupal import execute

      Import: –

      Imports all previously unprocessed records from the source, plus any records marked for the update, into destination Drupal objects.

      Rollback: –

      Deletes all Drupal objects created by the import

      Stop: –

      Please stop any import or rollback processes that may currently be running.

      Reset: –

      Sometimes a process may fail to stop, and be left stuck in an Importing or Rolling Back status.

      You can select the options and execute the process as per your requirement and your migration will be completed.

      Done!!!

      Please compare manually a few of your Drupal 7 contents with Drupal 8 to verify.

      If you follow the above mention steps carefully, you can easily migrate your site.

      If you are looking for Drupal Guide please refer to the link Getting Started With Drupal.

      Conclusion:-

      We hope the information gives you a complete idea of how to Migrate your Drupal 7 site in Drupal 8.

      If you get any issue while migrating, you can contact us anytime.

      If you get any issue while migrating, you can contact us anytime. Our expert Drupal developers can help you to migrate your website quickly. cmsMinds is headquartered in RTP and worked on many Drupal Development & Drupal migration projects. If you need help migrating or upgrading your website, then drop an email on info@cmsminds.com to schedule a free initial consultation with one of our Drupal experts.

      Author's Bio

      Jayesh Makwana
      Jayesh Makwana

      Jayesh Makwana writes with one goal in mind: to make Drupal easy for everyone. From his first steps with Drupal 6 to mastering the latest updates, he’s a true Drupal geek, passionate about sharing his knowledge. Whether it’s tips on Drupal migration, upgrading your site, or catching up on the newest features, Jayesh’s articles are your friendly guide. He simplifies complex topics, making them accessible to Drupal users of all levels. Follow Jayesh for insights that enlighten and inspire, all delivered with the enthusiasm of someone who loves what they do.

      Share This Article:

      Recent Blog
      VIEW ALL BLOGS