Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 1.15 KB

DRUPAL.md

File metadata and controls

45 lines (36 loc) · 1.15 KB

Quickstart Drupal

The db-sync-tool can automatic detect the database credentials of a Drupal application.

Therefore, you have to define the path to the desired drupal installation. The script uses drush to extract the database settings. See the Drush documentation for more information.

Command line

Example call for a Drupal sync in receiver mode:

$ python3 db_sync_tool 
    --type DRUPAL
    --origin-host <ORIGIN_HOST> 
    --origin-user <ORIGIN_USER>
    --origin-path <ORIGIN_PATH>
    --target-path <TARGET_PATH>

Configuration file

For reusability reasons you can use an additional configuration file containing all necessary information about the sync.

Command line call:

$ python3 db_sync_tool 
    --config-file <PATH TO CONFIG FILE>

Example configuration file:

{
  "type": "DRUPAL",
  "target": {
    "path": "<TARGET_PATH>"
  },
  "origin": {
    "host": "<ORIGIN_HOST>",
    "user": "<ORIGIN_USER>",
    "path": "<ORIGIN_PATH>"
  }
}

It is possible to extend the configuration.