frankyonnetti
9/2/2014 - 1:39 PM

#drupal path update

Drupal 7 - patch update #drupal #patch

DRUPAL PATCH UPDATE

  1. get patch file from web http://fuerstnet.de/en/drupal-upgrade-easier

  2. download to home $ wget http://fuerstnet.de/sites/fuerstnet.de/files/patches/drupal-7.12-to-7.14.patch

  3. now go to the root of the you site

  4. do a db backup (make sure -u is mysql unsername) $ mysqldump -u -p --add-drop-table DATABASENAME > ~/DATABASENAME.sql

  5. now do a site backup $ mkdir ~/drupal_backups/PROJECT_NAME $ cp -a ./* ~/drupal_backups/PROJECT_NAME/

  6. Dry run: $ patch -p1 --dry-run < ~/patches/PATCHFILE

  7. if all goes well $ patch -p1 < ~/PATCHFILE

  8. updated database $ drush updatedb

  9. clean out (delete) backup $ rm -rf ~/DIRECTORYNAME


Create Drupal Patch file

$ diff -Naur original-path/ new-path/ > drupal-7.x-to-7.x.patch