July 2011

Drupal Core Updates in 3 easy steps

One by one. That's my new Drupal site update mantra. Try as I might, I have not been able to find a tool or do-it-all script that can outdo a simple 3 step workflow for updating Drupal core.

I've been a Drush user for quite a while and I still hand it lots of the mundane tasks for many of the sites I manage. But Drush has failed me too many times to trust it implicitly. If you've ever Drush'd your way through a core upgrade you may know what I mean.

The simple, most straightforward, and most locked down way I know to update core safely is through 3 basic steps:

  1. Get your site running locally
  2. Update your site locally
  3. Push your local site to your live server

Doesn't that sound simple? It really is if you know your way around the command line.

To get your site running locally you can do the Drush rsync and sql-sync things, or you can run a command line script to do essentially the same thing. Here's an example:


#!/bin/bash

Powered by Drupal, an open source content management system