/ Published in: Bash
URL: http://drupal.org/node/496712#comment-1781316
Expand |
Embed | Plain Text
drush sql dump > /path/to/BACKUPS/site_name-$(date +%Y-%m-%d-%H.%M.%S).sql
Comments
Subscribe to comments
You need to login to post a comment.

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.