In this forum post from January, RonnieMc discussed a way to upgrade with less downtime. Here’s a slight variation on that that I just tried, and it seems to have worked correctly.
(All my EE files are in a folder on my web host called exp.)
- Downloaded latest version of EE
- Backed up my database
- Copied latest EE files into a new folder on my web host, called exp_new
- Copied path.php and system/config.php from exp to exp_new
- Copied the extensions, language, modules, and plugins that I had installed, from exp to exp_new
- Verified file permissions
- Only then did I take my site offline
- Renamed exp to exp_old
- Renamed exp_new to exp
- Ran update.php
- Copied all images I’d uploaded, from exp_old to exp
- Put the site back online
- Verified that the site was working properly
- Deleted update.php and the update directory
- Deleted install.php
(You’ve got to be careful not to run “install.php”, because if I remember correctly, that initializes - i.e. wipes out - your database.)
I was holding my breath, but everything seems to be working fine on the updated site. And it’s a big benefit to have the site down for only 5 minutes, instead of 20.
Now to check out the cool new features of 1.6!