A typical update script
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
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