Learn how to update to the latest version of Ghost by creating a new install.
0.x
, 1.x
, 2.x
sudo -i -u ghost-mgr
node -v
to check your node version.
If less than 14, update node:
curl -fsSL [https://deb.nodesource.com/setup_14.x](https://deb.nodesource.com/setup_14.x) | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g ghost-cli@latest
ghost backup
Then, update to the latest minor version using: ghost update
. This command will inform you of a more specific command to run.
ghost backup
This creates a backup zip file of everything you need, including:
routes.yaml
and redirects.yaml
or redirects.json
Screenshot of content export in Ghost Admin
Screenshot of content export in Ghost Admin
Screenshot of content export in Ghost Admin
ghost backup
to generate a backup zip, these are the steps to restore your data. If you did a manual backup, refer to the manual backup guide.
unzip
thebackup into the content
folder: sudo unzip /path/to/backup-from-[backup-name].zip -d content
sudo chown -R ghost:ghost content
ghost restart
ghost import content/data/content-from[backup-name].json
- This requires your username and password, and can also be done on the labs page in Ghost Admin.