What steps to take before an upgrade?

Every time I try to upgrade a site, it breaks! What do I need to do before an upgrade to prevent this. This never happens to my Wordpress sites. Argh!

View Replies:
adamjohnson replied on at Permalink Reply
Are you upgrading your Concrete5 site's incrementally or are you skipping versions? It's always best to upgrade version by version.

Also, are you using the Dashboard workflow to upgrade your sites or upgrading them manually? I prefer the manual upgrade process and feel like I have less issues with it (although many enjoy the in-app upgrade experience).

How to upgrade manually:

JohntheFish replied on at Permalink Reply
Take a complete backup of the database and all files. Create a clone of the site on a development system. Practice upgrading on the clone. That way your live system is never at risk.

Only once you know exactly what steps are necessary (having learned on the clone), should you (take another complete backup) before upgrading the live site.

A slightly more complex variation is to make a staging site as a clone on the same server as the live site under a subdomain, upgrade the staging site, then once happy all is working, swap the domain name pointer, so the staging site becomes the live site.

The advantage the staging site and domain name swapping is that you can always swap the domain name pointer back again!

Another thing that is often useful is to swap to a default theme during the upgrade, then swap back to your real theme afterwards. That way you can't be locked out by any theme incompatibility that could arise.