Export database via Drush

Public

With command line, go to your project folder and type:

</> CopyGet raw version
bash
  1. drush sql-dump > backup_file_name.sql

Comments

gavin hughes's picture

I love to dump the DB with this creates a file with the current date as part of the file name & uses gzip

  1. drush sql-dump --result-file="backup_`date +%d-%m-%y`.sql" --gzip