My Simple, but Nerve-Calming, drush Update Workflow
Just posted for my own reference - here's my workflow for updating a D6 (probably also D7) website using drush. Comprehensive information about all drush commands can be found on the http://drush.ws/ website. If you're not yet drinking the drush kool-aid, you need to—if you use a Linux server, of course.
- Visit admin/reports/updates page on your site, read through any relevant release notes for required updates (to check if there are special requirements for said update).
$ drush @site pm-updatecode <module1_shortname> <module2_shortname>
(add all modules to be updated)$ drush @site updatedb
(updates the site database - update.php)$ drush @site cc all
(clears all caches on the site)
The reason I do this manually, instead of running something like pm-update
or pm-updatecode
is that I like the granularity and security of doing all the updates discretely—especially when I'm updating a larger site, where I like to know exactly what's happening when I update.