How to Upgrade Ghost

Ghost is an amazing blogging platform that evolves every month. It is a good idea to keep your Ghost site up-to-date to have all the lates features. We are going to cover some steps that will explain the best method of upgrading Ghost 1.x.

Backup Your Data

Before you begin upgrading it is a good idea to backup your content. Just in case something bad happens.

SSH into your server that hosts your Ghost site.
Go into your Ghost root directory. Should be something like cd /var/www/ghost/.
From here go into content folder.
Make a copy of this folder.

You still need to backup all your posts and settings from Ghost's dashboard. Log in into your Ghost admin panel, example.com/ghost, then go to Labs and Export your content. Now you have a JSON file with all your data.

Upgrade Ghost-CLI

Before you start to upgrade ghost make sure you have the latest version of Ghost-CLI. To upgrade Ghost-CLI you need to run:

sudo npm i -g ghost-cli@latest

Upgrade Ghost

Now that you made a backup and have the latest version of Ghost-CLI, all you have to do is to go into your Ghost rood directory and run:

ghost update

If you run into errors it is a good idea to check if your problem is documented. For that you can check Ghost's Troubleshooting page.

If you still haven't managed to solve your issues go on Ghost's forum and ask for guidance.

You can find more details on how to upgrade Ghost on their documentation.