drupal scripts for development
Commands to switch to environment
Disable cache
drush vset cache 0 drush vset preprocess_css 0 drush vset preprocess_js 0
Source: stackoverflow.com.
Database management commands
Backup database
drush -v sql-dump --gzip --ordered-dump --result-file=/PATH/DUMPHERE.sql
Restore database from backup
First nuke the database table.
drush -v sql-drop
Import our backup.
gunzip -c /PATH/DUMPHERE.sql.gz | mysql -hHOST -uUSER -pPASSWORD DATABASE