function drush_sql_dump

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

Build a mysqldump/pg_dump/sqlite statement.

Parameters

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/sql.drush.inc
Command callback. Outputs the entire Drupal database in SQL format using mysqldump.

File

commands/sql/sql.drush.inc, line 263
Drush sql commands

Code

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