Posted By

zachharkey on 07/15/09


Tagged

drupal Drush


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

szoftverhiba
mbria
jfine
electblake
zack


Use drush sql dump to dump the database to the file system.


 / Published in: Bash
 

URL: http://drupal.org/node/496712#comment-1781316

  1. drush sql dump > /path/to/BACKUPS/site_name-$(date +%Y-%m-%d-%H.%M.%S).sql

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: jfine on September 15, 2010

Just an FYI, you want to use 'sql-dump' now.

drush: Warning: The command name "sql dump" is deprecated. Please use a recommended form instead (sql-dump). [warning] You may enable spaces in commands for a while by setting "allow-spaces-in-commands" in your drush configuration file. See [error] example.drushrc.php.

You need to login to post a comment.