What is this module?
This module is used to export content entities and import content after a complete installation.
It also be used to synchronise content between two different platform.
This module provide in details:
A configurable export
- Destination folder
- Entity types / bundles allowed to be exported
An entity export
- Drush command to do the export (drupal console command planned)
- Single language or Multi languages
An entity import
- Drush command to generate all migration entities regarding the module configuration (destination folder / entity types and bundle choice)
- Use drush migrate commands to do the import.
- Process definition for each field types in migration entity (basic field, entity reference field, ...), easily overridable (EventDispatcher)
Compatibility
This module allows to export ALL Entities that implements the ContentEntityTypeInterface
How does it work?
Exporting content:
- After enabling this module, go to /admin/config/system/content-staging:
- Run the drush command:
$ drush export-content (ex)
- Don't forget to export the entity_staging configurarion (entity_staging.settings.yml)
- Choose all entity types / bundles you want to export the content
- Change the default content staging directory ('../staging' by default).
This directory is relative to the drupal root.
Importing content:
- Run the drush command to update migration entities regarding the previous configuration:
$ drush update-migration-config (umc)
- Run the migration:
- for creation only:
$ drush migrate:import --group=entity_staging
- for creation and update:
$ drush migrate:import --update --group=entity_staging
- for creation only:
Requirements
migrate_plus (>= 4.0)
migrate_tools (>= 4.0)
Special thanks to:
Project information
- Module categories: Content Editing Experience, Developer Tools, Import and Export
- 4 sites report using this module
- Created by vpeltot on , updated
- Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
Releases
2.0.0-alpha1
released 20 October 2023
Works with Drupal: ^9.1 || ^10
✓ Recommended by the project’s maintainer.
Install:
Development version: 2.0.x-dev updated 20 Oct 2023 at 12:41 UTC