How to Design XML Documents
Aug 27 2:51:29
Back online!
Jul 30 16:17:53
Response to "Knowledge Management 2.0"
Jul 18 2:45:52
Drupal Apps
Jun 3 7:17:00
Google Sites and the AJAX universe
May 21 1:18:39
So, you've created a Drupal site, customized a few bits here or there of Drupal core to satisy your client, and everyone's happy.
Then, a new security update is released. Suddenly those changes look in danger of being overwritten with the upgrade. What to do?
If your changes are just tweaks rather than a major rewrite, the following two-stage upgrade process has always worked well for me. You will need the original Drupal files of your currently installed version ('base'), and a copy of the new version files in another directory ('new'). You also need access to a copy of your production server Drupal files ('live').
To apply security patches non-destructively:
Stage 1
diff -ruN C:\dev\base C:\dev\new > drupal-base-to-new-changes.diff
Stage 2
patch -p1 -u --dry-run < drupal-base-to-new-changes.diff > results.txt
patch -p1 -u < drupal-base-to-new-changes.diff > results.txt