vever001 / dmt_structure_export
Drush commands to export D7 site structure.
Installs: 46
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 3
Open Issues: 0
Type:drupal-drush
Requires
- php: >=5.6
Requires (Dev)
- drupal/coder: ^8.2
- drupal/drupal: ^7.62
- drush/drush: ^8.1.18
- phpro/grumphp: ^0.14
- squizlabs/php_codesniffer: ^2.9
This package is auto-updated.
Last update: 2025-02-22 21:00:01 UTC
README
This project contains Drush command(s) to export a Drupal 7 or Drupal 8 website structure to CSV files. Those CSV files can then be used to build mappings for a website migration.
The dmt-se:export
command can be used to generate a single export.
The dmt-se:export-all
command will run all exports and generate CSV files:
entity_bundles.csv
: All entity types and bundles (+ several settings)entity_properties.csv
: All entity properties for each entity type and bundlefields.csv
: All field basesmodules.csv
: The list of modulestaxonomy_terms.csv
: All taxonomy terms (with language_none/und or EN)
Requirements
- PHP 5.6 or higher
- Drush 8.1.18 or higher is required:
- this tool uses Consolidation\AnnotatedCommand and Consolidation\OutputFormatters
Installation
The recommended way is to use Composer.
You can install this Drush tool:
Per drupal instance (recommended)
The dmt_structure_export folder should go in DRUPAL_ROOT/drush/Commands
or DRUPAL_ROOT/../drush/Commands
or DRUPAL_ROOT/sites/all/drush/Commands
.
Using composer/installers: composer require composer/installers
Make sure you have the following in your composer.json's "extra" section:
"installer-paths": {
...
"drush/Commands/{$name}": ["type:drupal-drush"]
}
Finally: composer require vever001/dmt_structure_export:8.x-1.x-dev
Or globally
You can install it in your ~/.drush
folder.
-
Create a
drush-extensions/Commands
folder in~/.drush
-
Copy the example.drushrc.php file to
~/.drush
and rename it todrushrc.php
-
Add and adapt the following:
$options['include'] = array('/path/to/drush-extensions');
-
From
drush-extensions/Commands
rungit clone --branch 7.x-1.x https://github.com/vever001/dmt_structure_export.git cd dmt_structure_export composer install --no-dev