Using Drupal 8 Structure Sync Module

Structure Sync module is a great tool that helps you import/export your site's contents like Taxonomy, Menu and Blocks.

Installation

Download the latest version from https://www.drupal.org/project/structure_sync

or by using composer:

composer require drupal/structure_sync

Then go to Extend and install Structure Sync module

or by drush:

vendor/bin/drush en structure_sync --uri=default

 

Exporting

  1. Go to Structure > Structure sync.
  2. You will see Taxonomies, Custom blocks and Menu links tabs. Choose one that you want to export.
  3. Select the item/items you want to export and click the Export button. You should see a success message that tells that you have successfully exported the items.
  4. Go to Configuration > Configuration synchronization > Export to get the configuration sync file. This file will include the structure sync export files.

 

Importing

  1. Go to Configuration > Configuration synchronization > Import and upload the configuration sync file.
    (You can skip this step if your configuration sync file is committed on your repo and you have your sync folder fully configured)
  2. Go to Configuration > Configuration synchronization > Synchronize and click the Import all button to import everything from the config sync file.
  3. After the sync is finished, go to Structure > Structure sync.
  4. You will see Taxonomies, Custom blocks and Menu links tabs. Choose one that you want to import.
  5. Click Import button accordingly.

 

Add new comment

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.