SyncDb

Categories

Component ID

2409255

Component name

SyncDb

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

1314

Component created

Component changed

Component body

This project is maintained at GitHub as it is Drupal version agnostic.

This project implements two Drush commands to export and import large databases.

By splitting tables into separate files and importing them in parallel we can reduce the overall processing time considerably.

Here is a description of each command:

  • drush dumpdb will dump database tables into the temporary directory of the current environment..
  • drush syncdb @example.dev will download sql files from @example.dev and install them in the current environment.
  • drush importdb --dump-dir=/foo/bar will import all *.sql files from /foo/bar using the same method as syncdb.

It is highly recommended you install Gnu Parallel.

This command has been tested with MySQL only.