Using Drush to encapsulate operation inside a drupal maintenance mode

1 minute read

Out Of Date Warning

This article was published on 24/10/2011, this means the content may be out of date or no longer relevant.
You should verify that the technical information in this article is still up to date before relying upon it for your own purposes.

Using drush is a convenient way to deploy bigger DB-changes without giving the users a glitch. Instead they will see a maintenance mode page.

drush vset site_offline 1
cat ~/db.sql | mysql -u usr_bla -p db_bla
drush vset site_offline 0

Reposted from