Drupal 7 Using drush to update modules

Path to the folder for my site: /home/user/domains/debuntu.info/

Path to the folder for backups: /home/user/backup/

Go into the site folder:

$ cd /home/user/domains/debuntu.info/

Enable maintenance mode for the site:

$ drush variable-set maintenance_mode 1

Clear all caches:

$ drush cache-clear all

Backup:

$ drush archive-dump --destination=../../backup/debuntu.info_`date "+%Y%m%d-%H%M%S"`.tar.gz

Refresh:

$ drush pm-refresh

Update:

$ drush pm-update

If auto update the database has not occurred then need do manually update the mysql database:

$ drush updatedb

Turn off maintenance mode:

$ drush variable-set maintenance_mode 0

Done.