Drupal Update with Drush

1. cd to Drupal installation Directory

2. Backup Drupal

drush archive-dump

3. Check Drupal Update and get the list of modules that have update

drush ups

4. Set Drupal Website to maintenance mode

drush sset system.maintenance_mode 1

5. Clear Drupal Cache

drush cr

6. Update Drupal and press "Y" when asked

drush up drupal

7. Update Drupal Database

drush updb

8. Update Drupal modules

drush up XXXX XXXX

where XXXX is the module name (the string inside the bracket in step 2)

9. Set Drupal Website back to live mode

drush sset system.maintenance_mode 0

10. Clear Drupal Cache Again

drush cr

 

Tags