Updating farmOS

New versions of farmOS will be released on a regular basis, and it's important to stay up-to-date so that you can receive new features, bug fixes, and security patches when they become available.

Updating farmOS is basically the same process as updating Drupal core.

The general procedure is:

  1. Backup your code and database! Always do this before making big changes. Be ready and able to roll-back in the event that something goes wrong.
  2. Download the new recommended release of farmOS from https://drupal.org/project/farm
  3. Unzip the compressed folder, and replace everything in your Drupal codebase EXCEPT the /sites/ folder. Do not overwrite the /sites/ folder, because it contains content and configuration for your site.
  4. Clear your cache and rebuild your registry with Drush and Drush Registry Rebuild. This isn't always necessary, but it doesn't hurt.

    drush cc all

    drush rr

  5. Run database updates.

  6. Revert all Features via Drush. If you have intentionally overridden any specific farmOS configurations, then you should NOT do this. You will need to resolve any merge conflicts with farmOS core Features changes in order to complete the upgrade. See developing with updates in mind.

    drush fra