Dcycle Blog

A typical update script

September 19, 2013

SITE=mysite
drush vset maintenance_mode 1
drush cc all
drush sql-dump > ~/$SITE.sql
# to restore later on:
# drush sqlc < ~/$SITE.sql
drush en $SITE\_deploy
drush updb -y
drush cc all
drush cron
drush vset maintenance_mode 0