function drush_sql_dump

8.0.x drush_sql_dump()
6.x drush_sql_dump($db_spec)
7.x drush_sql_dump()
3.x drush_sql_dump($db_spec = NULL)
4.x drush_sql_dump($db_spec = NULL)
5.x drush_sql_dump($db_spec = NULL)
master drush_sql_dump()

Build a mysqldump/pg_dump/sqlite statement.


db_spec: For D5/D6, a $db_url. For D7, a target in the default DB connection.

Return value

array An array with items. 1. A mysqldump/pg_dump/sqlite statement that is ready for executing. 2. The filepath where the dump will be saved.

1 call to drush_sql_dump()
drush_sql_dump_execute in commands/sql/
Command callback. Outputs the entire Drupal database in SQL format using mysqldump.


commands/sql/, line 263
Drush sql commands


function drush_sql_dump($db_spec = NULL) {
  return drush_sql_build_dump_command(drush_sql_get_table_selection(), $db_spec);