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()

Command callback. Outputs the entire Drupal database in SQL format using mysqldump or equivalent.

File

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

Code

function drush_sql_dump() {
  drush_sql_bootstrap_further();
  $sql = drush_sql_get_class();
  return $sql->dump(drush_get_option('result-file', FALSE));
}