Upgrading Self Hosted n8n Instance
Good news, once you installed n8n, it’s easy to back up, it’s easy to upgrade, and easy to restore.
If you’re like me, I had a painless experience.
Follow these simple 6-Steps to upgrade your n8n instance.
Start by logging into your server using your preferred CLI (command line interface):
STEP 1 – Stop n8n
STEP 2 – Backup your n8n Data Folder
Your live n8n data should be in the /n8n_data/ folder.
Create a compressed backup.
Move the backup into your backups/ folder:
You should now see something like:
STEP 3 – Pull the New n8n Image
In our example we are going to upgrade from 1.105.4 → 1.120.0. The same will work for any newer versions (e.g. 1.130.0. 1.15.0, etc.)
To pull the new version:
STEP 4 – Update docker-compose.yml
Open docker-compose.yml
Update it to version 1.120.0 or the latest version:
VIM Commands:
Press “I” to INSERT (edit normally)
Press “ESC” to Go Back to Command Interface
Type “:wq” to Write + Quit
STEP 5 – Start n8n With the New Version
Run:
Check running containers:
Expected result (your result may look slightly different):
STEP 6 — Verify Version
Run inside the container.
Replace<YOUR_CONTAINER_NAME> with “NAME” of the container.
⚠️ If Something Breaks — Roll Back Easily
Stop containers:
Revert docker-compose.yml image to your old version:
You’re back to your old version.