I have a site running on a cloud server with Ubuntu 13.04. I want to upgrade to 14.04 as seamlessly as possible. I found this answer but I wanted to flesh it out so I can be more confident.
My plan was to
- Create an image of the current production server, then create a new cloud server from this image.
- On the clone, run
sudo sed -i 's/raring/trusty/g' /etc/apt/sources.listthen
sudo apt-get update && sudo apt-get dist-upgradethen
sudo apt-get install --reinstall ubuntu-desktop.
- Answer install questions (choose/skip default Chef? postfix?), debug errors and test the site with a different domain and database to the live site.
- In the Cloud DNS, change mysite.com's A record IP address to the IP address of the new cloud server.
Will this work, or is it way too simplistic, or just wrong? Is this better than just backing up the live server, and trying to
do-release-upgrade it, restoring if required? I'm planning to do this during a very quiet time so a little downtime isn't that bad.
Any help would be greatly appreciated.