A lesson is completed when you tick it, when you watch its video to the end or when you score 80% on its quiz. The certificate is issued online after the final assessment, from a score of 32 out of 40.
Lesson 12, module 3: Choosing your platform Installing n8n on your own server, and what it commits you to doing afterwards n8n on your server is free in licence terms and costly in time: here's the real cost. First, a decision: is n8n's cloud enough for your needs? [Diagram: Self-host n8n?] 1. A written reason: data, volume, cost? 2. A person for maintenance, and a backup person? Yes to all: Install n8n on your server The installation has four parts, from the outside in to the data. A domain and a server Traefik for HTTPS n8n in Docker The n8n_data volume The encryption key protects your credentials: without it, a backup is useless.
An AI can explain each configuration line before you run it. Prompt: Explain this n8n compose.yaml file line by line, and say what would be dangerous if I changed it. [file without secrets] Response: One explanation per block: Traefik, ports, labels, variables, volumes, with two warnings about port 5678 and the key. Then comes maintenance, on fixed dates, noted in a shared calendar. [Diagram: The maintenance calendar] Every day: Alert Every week: Backup Every month: Update Every quarter: Restore The licence allows internal use, not reselling n8n as a service. Internal use: yes Flows for clients: yes n8n resold as a service: no In the exercise, you write the sheet for the backup and the restore test. Your turn: Write the sheet for the backup and the restore test The written course, the corrected exercise and the quiz are below the video.
Lesson 12 of 50 · module 3, choosing your platform
Installing n8n on your own server, and what it commits you to afterwards
Installing n8n on your server takes a morning with Docker Compose: a domain, an HTTPS certificate, an encryption key to keep safe. The commitment comes afterwards: tested backups, updates, monitoring, responsibility for the data. This lesson gives you the step-by-step installation, the maintenance schedule and a rule for deciding.
26 min of reading
1 min 59 of video
6 diagrams
1 demande to copy
3 exemples pratiques
4 exercices answerss
5 questions
1 ressource
By the end of this lesson, you will know how to
Choose between n8n Cloud and n8n on your own server, for a written reason
Install n8n with Docker Compose, HTTPS and a backed-up encryption key
Keep to the maintenance schedule: backup, tested restore, update, monitoring
What’s covered
The four parts of the installation
What it commits you to afterwards
3 worked examples, followed from start to finish
Exercise with answers · Write the backup sheet and the restore test
3 practice exercises, from guided to demanding cases
The quiz
Key points
n8n Community costs nothing in licence fees and a lot in time: installation, backups, updates, monitoring, without a break.
A Docker Compose installation comes down to four parts: a subdomain, Traefik for HTTPS, the n8n container and the n8n_data volume.
Keep the encryption key in two places: without it, no restored credential can be decrypted.
The schedule: monitoring every day, backup every week, update every month after a backup, restore tested every quarter.
The licence allows internal use and workflows for clients, but not reselling n8n as a service.
The lesson “Zapier, Make or n8n: choosing your automation platform” left one door open: n8n can be installed on your own server, in the Community edition, without paying for a licence. It is the only one of the three platforms that allows this. The gain is real when you run many workflows or when your data must not leave a server you choose. The cost lies elsewhere: someone has to install, back up, update and monitor it, every month, without a break. A forgotten instance will eventually fail on the day of a deadline, or expose the whole company’s access credentials.
n8n Cloud or your own server?
1Do you have a written reason: data that must stay on a server of your choice, volume beyond the cloud plans, a need for a feature only available when self-hosting?
No n8n Cloud (Starter about €20 a month billed annually, checked 15 November 2026) does the same job with no maintenance
2Can someone use a Linux terminal, and do they have two hours a month?
No Get support, or stay on the cloud
3Can a second person stand in during absences?
No Write the procedure and train this person before installing
4Do you accept sole responsibility for the data processed and its security?
No Stay on the cloud, where the vendor is a processor under GDPR
Yes to allInstall n8n on your server, following this lesson's maintenance schedule
A single “no” is enough to stay on n8n Cloud, at least to start with.
What you gain, what you take on
n8n Cloud
n8n Community on your server
Licence
Starter about €20, Pro about €50 a month billed annually (15 November 2026)
Free, under the “Sustainable Use License”
Executions
2,500 (Starter) or 10,000 (Pro) per month
No quota: limited by server capacity
Missing features
Depending on the plan
Projects, sharing of workflows and credentials, SSO, environments, custom variables, Git, among others
Data
On Microsoft Azure in the EU; n8n is the processor
Wherever your server is; you alone are responsible
Backups, updates, security
The vendor
You
Real cost
The subscription
The server, plus about two hours a month, plus the risk if nobody looks after it
The four parts of the installation
An n8n instance, layer by layer
The domain name
A subdomain, for example n8n.votre-entreprise.fr, pointed at the server's address.
Traefik
Receives traffic on ports 80 and 443, obtains the HTTPS certificate, forwards to n8n.
The n8n container
The application, reachable only from the server on port 5678.
The n8n_data volume
The SQLite database, the config file that holds the encryption key, the logs.
Only the first two layers are visible from the internet; the last one is what you back up.
The server is a Linux virtual server rented from a hosting provider, located in France or the European Union if your data requires it. The n8n documentation gives no minimum configuration; for a small team and a few dozen workflows, 2 virtual CPUs and 4 GB of memory leave headroom. Docker Engine and Docker Compose must be installed on it (check with docker --version and docker compose version), and SSH access uses a key, never a password.
Prepare the domain and the folder
With your domain name registrar, create an A record for the n8n subdomain pointing to the server's IP address. Allow up to a few hours for propagation.
On the server, open the firewall to ports 22 (SSH), 80 and 443 only.
Create the /opt/n8n-compose folder and, inside it, the local-files folder: n8n will see it at the path /files.
In /opt/n8n-compose, create the .env file, then the compose.yaml file from the two blocks below.
The .env file, to fill in and then protect.env
# /opt/n8n-compose/.env : jamais dans Git, droits restreints (chmod 600 .env)
DOMAIN_NAME=votre-entreprise.fr
SUBDOMAIN=n8n
GENERIC_TIMEZONE=Europe/Paris
SSL_EMAIL=informatique@votre-entreprise.fr
# Clé de chiffrement des identifiants, générée une fois par : openssl rand -hex 32
# Copiez-la aussi dans le gestionnaire de mots de passe de l'entreprise.
N8N_ENCRYPTION_KEY=<collez-ici-la-clé-générée>
Without GENERIC_TIMEZONE, n8n runs on New York time: your 8am triggers would fire at 2pm.
The compose.yaml fileYAML
# compose.yaml : n8n derrière Traefik, qui obtient et renouvelle le certificat HTTPS (Let's Encrypt).
# Repris de l'exemple de la documentation de n8n ; les valeurs ${...} viennent du fichier .env voisin.
services:
traefik:
image: "traefik"
restart: always
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
- "--entrypoints.web.http.redirections.entrypoint.scheme=https"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.mytlschallenge.acme.tlschallenge=true"
- "--certificatesresolvers.mytlschallenge.acme.email=${SSL_EMAIL}"
- "--certificatesresolvers.mytlschallenge.acme.storage=/letsencrypt/acme.json"
ports:
- "80:80"
- "443:443"
volumes:
- traefik_data:/letsencrypt
- /var/run/docker.sock:/var/run/docker.sock:ro
n8n:
image: docker.n8n.io/n8nio/n8n # ajoutez :<version> pour figer la version que vous avez testée
restart: always
ports:
- "127.0.0.1:5678:5678" # joignable seulement depuis le serveur : l'extérieur passe par Traefik
labels:
- traefik.enable=true
- traefik.http.routers.n8n.rule=Host(`${SUBDOMAIN}.${DOMAIN_NAME}`)
- traefik.http.routers.n8n.entrypoints=websecure
- traefik.http.routers.n8n.tls=true
- traefik.http.routers.n8n.tls.certresolver=mytlschallenge
environment:
- N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME}
- N8N_PORT=5678
- N8N_PROTOCOL=https
- NODE_ENV=production
- N8N_WEBHOOK_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/ # WEBHOOK_URL avant la version 2.30.0
- N8N_ENCRYPTION_KEY=${N8N_ENCRYPTION_KEY}
- GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
- TZ=${GENERIC_TIMEZONE}
- EXECUTIONS_DATA_MAX_AGE=336 # 14 jours d'historique (valeur par défaut)
- N8N_RESTRICT_FILE_ACCESS_TO=/files
volumes:
- n8n_data:/home/node/.n8n # base SQLite, fichier config (clé de chiffrement), journaux
- ./local-files:/files
volumes:
n8n_data:
traefik_data:
Structure taken from the n8n documentation on 15 November 2026. The N8N_WEBHOOK_URL variable replaces WEBHOOK_URL from version 2.30.0; check the installed version.
Start, read the logs, stopTerminal
cd /opt/n8n-compose
sudo docker compose up -d # démarre Traefik et n8n en arrière-plan
sudo docker compose ps # les deux services doivent être « running »
sudo docker compose logs -f n8n # journaux de n8n en direct (Ctrl+C pour quitter)
sudo docker compose stop # arrête sans rien supprimer
The first launch
Open https://n8n.votre-entreprise.fr: n8n is reachable only over HTTPS, and the browser padlock must appear.
Create the owner account with a generic company address and a long password, stored in the password manager.
Tick the Community edition registration: n8n emails you a free key that adds folders, debugging in the editor and custom execution data.
On an instance already running: three-dot menu at bottom left, Settings then “Plan & usage”, Unlock, your address, then “Send me a free license key”. Activate the key from the e-mail or via “Enter activation key”.
In personal settings, turn on two-factor authentication for the owner account. n8n's interface labels are in English and may vary by version.
What it commits you to afterwards
The maintenance schedule
Day 0Installation
Key stored, owner account with two-factor authentication, first backup.
Every dayMonitoring
An external probe checks that the address responds, and raises an alert if not.
Every weekBackup
The n8n_data volume copied off the server, automatically.
A backup restored to a test server, credentials included.
Each line has a named owner and a deputy, recorded on the instance sheet.
According to the documentation, a full backup has two parts: the .n8n folder (in Docker, the n8n_data volume), which contains the SQLite database and the config file with the key, and the PostgreSQL database if you use one. With SQLite, n8n must be stopped during the copy. The command n8n export:workflow --backup exports workflows and credentials, but not users, history or the key: it is for moving flows, not for rebuilding an instance.
The weekly backupTerminal
#!/usr/bin/env bash
# /opt/n8n-compose/sauvegarde.sh : sauvegarde complète de n8n (base SQLite et clé dans le volume n8n_data).
# Lancé chaque dimanche à 3 h par cron. Arrêt de n8n pendant la copie, comme le demande la documentation pour SQLite.
set -euo pipefail
cd /opt/n8n-compose
JOUR=$(date +%F)
VOLUME=n8n-compose_n8n_data # nom réel : docker volume ls
mkdir -p /opt/sauvegardes
docker compose stop n8n
docker run --rm -v "$VOLUME":/donnees:ro -v /opt/sauvegardes:/sauvegardes alpine \
tar czf "/sauvegardes/n8n_data_$JOUR.tar.gz" -C /donnees .
docker compose start n8n
# Copie hors du serveur : rclone vers un stockage déclaré sous le nom « distant » (rclone config)
rclone copy "/opt/sauvegardes/n8n_data_$JOUR.tar.gz" distant:n8n/
# Copie à part des fichiers .env et compose.yaml (la clé de chiffrement y figure aussi)
rclone copy /opt/n8n-compose/.env distant:n8n/config/
rclone copy /opt/n8n-compose/compose.yaml distant:n8n/config/
# Huit semaines gardées sur le serveur
find /opt/sauvegardes -name 'n8n_data_*.tar.gz' -mtime +56 -delete
Make it executable (chmod 700), then schedule it with crontab -e: 0 3 * * 0 /opt/n8n-compose/sauvegarde.sh >> /var/log/n8n-sauvegarde.log 2>&1. The .env contains the key: the remote storage must be private and encrypted.
The monthly updateTerminal
# 1. Lire les notes de version de n8n (docs.n8n.io/release-notes) : changements cassants ?
# 2. Sauvegarder d'abord, comme le recommande la documentation
/opt/n8n-compose/sauvegarde.sh
# 3. Mettre à jour, avec les commandes de la documentation
cd /opt/n8n-compose
docker compose pull
docker compose down
docker compose up -d
# 4. Vérifier : version affichée dans n8n, exécutions des flux principaux dans l'heure qui suit
Settings that prevent nasty surprises
Setting
Default value
Why consider it
EXECUTIONS_DATA_MAX_AGE
336 hours (14 days)
The history grows every day; 14 days is often enough, but not always for a monthly check
EXECUTIONS_DATA_PRUNE_MAX_COUNT
10,000 executions
Beyond that, the oldest are deleted
EXECUTIONS_DATA_SAVE_ON_SUCCESS
All saved
“none” keeps only failures, and less personal data
DB_SQLITE_VACUUM_ON_STARTUP
Disabled
With SQLite, the space from deleted data isn't returned to the disk without VACUUM
DB_TYPE=postgresdb and DB_POSTGRESDB_*
SQLite
PostgreSQL when volume grows or several instances share the database; the n8n_data volume is still needed
Have your configuration reviewed before launching it
Here is the compose.yaml file and the list of variables (without their values) for my self-hosted n8n instance on a Linux server, for a 12-person company: [paste the file, replace each secret with <secret>].
Check: 1. that no n8n port is exposed directly to the internet; 2. that the time zone is set; 3. that the encryption key is set by a variable; 4. that the data is in a persistent volume. For each point, say “compliant” or “to fix” with the line concerned. Do not suggest any other changes.
Roughly what you should get
Four lines, each with its verdict and the line quoted. Check every suggested correction against the n8n documentation yourself before applying it: an assistant can mix up two versions.
Mistakes to avoid
Backing up only the database file, without the config file or the encryption key.
The workflows come back, but no credential can be decrypted: every connection has to be rebuilt by hand, on the day you are shortest of time.
Back up the entire n8n_data volume, along with the .env and the compose.yaml, and store the key in the company’s password manager.
Running docker compose pull without pinning the image version or reading the release notes.
A major version change arrives without warning, with breaking changes, such as “Publish” replacing activation in version 2.
Pin the version in compose.yaml, read the release notes, back up, then change version deliberately, with a major version only after a trial on a test server.
Publishing port 5678 directly to the internet to do without the proxy.
n8n becomes reachable without HTTPS: passwords and credentials travel in plain text, and the login page is exposed to everyone.
Keep “127.0.0.1:5678:5678” and route all traffic through Traefik, with a firewall open only on ports 22, 80 and 443.
Install the instance alone, with no deputy or written procedure.
On the day someone leaves, is absent or something breaks, nobody knows where the key, the backups and the server access are.
Write the maintenance procedure, appoint a deputy, and have them run a restore test before going live.
3 SME situations followed from start to finish: the prompts exactly as they were written, the model answer to aim for, and what was checked before sending.
Example 1
An accountancy firm that keeps its data on its own server
The firm has 15 employees in Mérignac and processes accounting documents for 300 clients. The partners want to automate the filing of documents received by e-mail, without them passing through a hosted service outside their control. The firm’s IT provider already administers two Linux servers.
The firm's instance
n8n.cabinet-[nom].fr
The firm’s subdomain.
Traefik
HTTPS, ports 80 and 443 only.
n8n
Fifteen workflows, 7 days of history, failures only.
n8n_data
Backed up every Sunday off the server.
Request 1
Here is our n8n instance plan: server rented in France, Docker Compose, Traefik, SQLite, around fifteen flows, 2,000 executions a month. List the decisions to make before installation, as closed questions, and what each answer changes.
Model answer
Eight questions: who owns the instance, who deputises, where the backups go, how many days of history to keep, whether to keep only failures, who receives the monitoring alert, SQLite or PostgreSQL, how client credentials are stored. For each, the effect on the configuration.
The provider replies in writing. The partners choose 7 days of history and keeping failed executions only, to limit the personal data stored.
Request 2
Chosen settings: EXECUTIONS_DATA_MAX_AGE=168 and EXECUTIONS_DATA_SAVE_ON_SUCCESS=none. What do we lose in return?
Model answer
You will no longer be able to check afterwards that a successful execution processed a given document. Keep a record in a separate log, without the content of the documents.
A minimal log (date, client, document type) is added to each flow. The lesson on flow logs will extend this to all flows.
What was checked before sending
The encryption key stored in the firm's password manager and in the .env.
The record of processing activities updated: the firm is solely responsible, with no n8n processor.
A restore tested before the first flow goes live.
Order of magnitude: the cost of a server and about two hours of provider time a month, versus a Pro cloud plan with data hosted by a third party.
Example 2
A joinery firm that decides to stay on the cloud
The 12-person joinery firm in Pessac, the one from the reference workflow, is wondering whether to install n8n on a server to save the subscription. The manager has read that a single command is all it takes. Nobody in the company uses a terminal.
The joinery's decision
1A reason other than price?
No Stay on n8n Cloud
2One person for maintenance?
No Stay on n8n Cloud
Yes to allSelf-host
Request 1
We use n8n Cloud Starter for 4 workflows and about 400 executions a month. We are thinking of moving to our own server to stop paying. Ask me the deciding questions, one at a time, and wait for my answers.
Model answer
First question: do you have a reason other than price, such as data that must stay on a server of your choice, or volume above 2,500 executions? Then: who will do the monthly updates, and who stands in during their holidays?
The manager answers no to both questions. The saving, about €240 a year, covers neither the maintenance time nor the risk.
Request 2
Write the decision and its reason in three lines for our platform record, with the condition that would make us revisit it.
Model answer
Decision of 15 November 2026: stay on n8n Cloud Starter. Reason: no data constraints, 400 executions out of 2,500, no one to maintain it. To be reviewed if volume exceeds 2,000 executions a month or if someone trained in Linux joins the team.
The manager pastes these lines into the record and sets a reminder in his calendar for a year’s time.
What was checked before sending
The actual volume read from the n8n Cloud counter: 400 executions out of 2,500.
The decision and its reason recorded on the platform sheet, with a review date in one year.
Order of magnitude: no maintenance hours to plan for, at about €20 a month.
Example 3
A charity that discovers its backup was incomplete
A home-care charity with 40 employees in Libourne installed n8n eight months ago. A database backup runs every night. The volunteer who installed the instance has left. His replacement, an employee in charge of IT, is carrying out the first restore test.
Eight months of backups
Month 1Installation
Only the database backed up.
Month 7Start
The installer leaves.
Month 8Test
Credentials can't be decrypted.
Month 8Correction
Volume and key backed up.
Request 1
I restored n8n's SQLite database on a test server. The workflows are there, but every credential shows a decryption error. The backup contained only the database file. What happened and what else do I need to back up?
Model answer
The encryption key stayed on the original server, in the config file in the .n8n folder, or in the N8N_ENCRYPTION_KEY variable. Back up the whole .n8n folder, or the n8n_data volume, and keep the key separately.
The production server still works: she retrieves the key from the config file, stores it in the password manager and fixes the backup the same day.
Request 2
Write a five-line checklist for my quarterly n8n restore test, each line with what I need to see before ticking it.
Model answer
1. Volume archive dated less than 7 days ago. 2. n8n starts on the test server. 3. Same number of workflows as in production. 4. A credential opens and its connection test passes. 5. Total time recorded.
She prints the list and files it with the procedure, so that anyone can run the next test the same way.
What was checked before sending
A second restore test after the fix: credentials decrypted, connection test passed.
The written procedure and the named stand-in, so you no longer depend on a single person.
The maintenance schedule entered in the association’s shared calendar.
Order of magnitude: a day of rebuilding access credentials avoided, discovered on a quiet day.
A 9-person architecture practice in Bègles has installed n8n on a server rented in France, with SQLite, for around fifteen flows. Nothing is backed up yet. Write the automation sheet for the weekly backup, then the restore procedure tested every quarter, with the checks that prove it worked.
Fill in the five boxes of the record for the weekly backup.
Say what must be backed up, and where the copy must go.
Write the steps for restoring onto a test server.
List the checks that prove the restore succeeded.
Write down who does what, and who stands in.
See the answers
The “Weekly n8n backup” sheet
Box
Content
Trigger
Server cron, every Sunday at 3am, Paris time.
Data
The n8n_data volume (SQLite database, config file with the key, logs), the .env and the compose.yaml. Personal data: yes, from the workflows and the history.
Decisions
None: the backup runs every week. If the remote copy fails, an alert is sent.
Actions
Stop n8n, archive the volume, restart, copy off the server to private, encrypted storage, eight weeks kept on the server.
Inspection
Amber level: nothing is sent outside, but the archive contains all the access credentials. Owner: the partner in charge of IT; stand-in: the IT provider. Log read every Monday, restore tested every quarter.
Rent a test server for an hour, install Docker on it and copy over the backed-up compose.yaml and .env (the encryption key is inside).
Create the volume, then extract the archive into it: docker run --rm -v n8n-compose_n8n_data:/donnees -v /chemin/archive:/a alpine tar xzf /a/n8n_data_AAAA-MM-JJ.tar.gz -C /donnees.
Start with docker compose up -d, with local access only or under another subdomain, so that two instances don't process the same triggers.
Log in with the owner account.
Delete the test server once the checks are recorded.
The checks that prove the restore worked
Verification
Success
Workflows
The number of workflows matches production
Credentials
A credential opens without a decryption error, and a connection test passes
The history
Last week’s executions are visible
Duration
The total time is recorded: this is your actual recovery time
The most common trap: restoring the volume without the .env, or with a different key. The workflows come back, but no credential can be decrypted. The quarterly test exists precisely to discover this on a quiet day, not on the day of a failure.
Practise
Three more exercises, from the most guided to the most demanding. The material is provided in full: copy it into your tool, then check your work against the criteria before opening the answers.
Level 1 · guided10 min
Decide for three companies
For each of the three companies in the handout, say whether it should stay on n8n Cloud or install n8n on its own server, working through the lesson’s four questions. This exercise requires no tools.
The material to work on
A. A 5-person travel agency in Bordeaux, 3 flows, 300 executions a month, no Linux skills.
B. A 30-person medical testing laboratory in Pau, a full-time IT specialist and a contractor, health data, 30,000 executions a month.
C. A 20-person software publisher in Toulouse that wants to offer its customers a space where they will build their own automations with n8n.
Check your work
A stays on the cloud, for lack of a written reason and of someone to maintain it
B has a reason (data, volume) and a team: self-hosting is an option
C raises a licensing question before any technical one
Each answer cites the deciding question
See the answers
The three decisions
Company
Decision
Deciding question
A
n8n Cloud Starter
No written reason other than price, nobody to maintain it
B
Self-hosting, or an Enterprise plan to look into
Health data and 30,000 executions; an IT specialist and a deputy
C
Neither, without n8n’s agreement
The licence forbids reselling n8n as a service in which clients build their own workflows
For B, health data also requires a host certified for this type of data: this obligation goes beyond n8n and should be checked with the laboratory’s data protection officer.
Have an AI play devil's advocate
Here is my decision for a company: [paste the description and your decision]. Play devil's advocate: give the two best arguments against my decision, then say in one sentence whether either should make me change it.
Roughly what you should get
Two arguments and a verdict. If it challenges your decision, go back to the lesson's deciding question.
Level 2 · independent15 min
Diagnose an update that went wrong
A 10-person print shop in Talence updated its n8n instance one Monday morning. Since then, no scheduled flow has run. Read the material, find the two method errors and the likely cause, then explain how to get back to a healthy state.
The material to work on
The manager’s account: “I ran docker compose pull, then down, then up -d. I didn’t make a backup, there’s one on Sundays. I didn’t read the release notes.”
Observed state: n8n has gone from a version 1 to a version 2. The workflows are there and saved, but none shows as published. The compose.yaml pins no image version.
Check your work
You point out that no backup was made just before the update
You point out that the release notes were not read, even though this is a major version change
You link the cause to the move to version 2, where “Publish” replaces activation
You suggest checking and then publishing each workflow, and pinning the image version
See the answers
Mistake 1: no backup before the update. Sunday's backup was from the day before, but the documentation recommends a full backup immediately beforehand.
Mistake 2: release notes not read. Moving from version 1 to version 2 involves breaking changes, listed on n8n's dedicated page.
Likely cause: in version 2, “Publish” replaces “Activate”. Check the publication status of each workflow, and publish those that need to run.
From now on: pin the image version in the compose.yaml (docker.n8n.io/n8nio/n8n:), and only change major version after a trial on a test server.
The question to ask before a major update
I'm going to upgrade self-hosted n8n from version [current] to version [target]. Here is the list of breaking changes published by n8n: [paste the page]. Which ones affect a setup with Docker Compose, SQLite, a dozen scheduled workflows and Code nodes? Rank them by importance, with the action to take before or after the update.
Roughly what you should get
A short, ranked list to check against your real workflows before running the update.
Level 3 · demanding case35 min
Write the maintenance procedure for an instance
A 25-person transport company in Saint-Jean-d'Illac is going to install n8n on a server rented in France for its delivery-tracking flows. Write its one-page maintenance procedure: who, what, when, how to check, and what happens when the person responsible is away. Add the sheet for the daily monitoring alert.
The material to work on
People: Sandrine, office manager, comfortable with a terminal; the IT provider, reachable within 24 working hours. Workflows: 12 workflows, about 6,000 executions a month, including one that warns clients of a delay. Management requirement: no more than half a day of downtime.
Check your work
The schedule’s four frequencies are listed with an owner and a stand-in
The encryption key is stored in two places, one of them accessible to the deputy
The update procedure starts with the backup and the release notes
The monitoring sheet has its five boxes ticked
The half-day limit is compared with the actual time measured during the restore test
See the answers
The maintenance procedure
When
What
Who
Stand-in
Evidence
Every day
External probe on the n8n address
Automatic, alert to Sandrine
The provider in copy
No alert, or alert handled within the hour
Every week
Backup of the volume, the .env and the compose.yaml off the server
Automatic
Sandrine reads the log on Mondays
Dated archive present on the remote storage
Every month
Release notes, backup, update, workflow check
Sandrine
The provider
Version recorded, successful executions within the hour
Every quarter
Restore on a test server
Sandrine and the provider
The provider alone
Credentials decrypted, time recorded
The “n8n instance monitoring” sheet
Box
Content
Trigger
An external probe (a monitoring service outside the server) checks the n8n address every 5 minutes.
Data
HTTP response code and response time. Personal data: none.
Decisions
Two failures in a row: alert. Back to normal: end-of-incident message.
Actions
Text and e-mail to Sandrine, e-mail to the provider.
Inspection
Green level: a simple internal alert. The probe must not run on the n8n server, otherwise it goes down with it.
The key is in the backed-up .env and in the password manager shared between Sandrine and the contractor. If the restore test takes more than four hours, the half-day requirement isn't met: you then need to prepare the standby server in advance, or revisit the requirement with management. The flow that warns customers of a delay must have a written manual workaround for the duration of an outage.
The instance’s crontab linesTerminal
# crontab -e, sur le serveur de n8n (heure du serveur réglée sur Europe/Paris)
# Sauvegarde complète chaque dimanche à 3 h
0 3 * * 0 /opt/n8n-compose/sauvegarde.sh >> /var/log/n8n-sauvegarde.log 2>&1
# Rappel du test de restauration le 1er janvier, avril, juillet et octobre à 9 h
0 9 1 1,4,7,10 * echo 'Test de restauration n8n à faire' | mail -s 'n8n : test trimestriel' sandrine@[entreprise].fr
The e-mail reminder requires a mail relay configured on the server; failing that, put the test in the shared calendar.
All the course prompts to copy, both for the assistant that helps you build and for the AI step of a flow, including answers, practical examples and practice tasks, sorted by module and lesson, with filters to find the right one.
For each lesson, the main exercise and the three graded practice tasks with their materials, to do on paper or alongside your automation platform; all the answers are grouped at the end.
The course’s practical examples, job by job: the situation, the prompt as it was written, the model answer and what was checked before letting the flow run.
All the lessons in a single PDF: objectives, written course with its diagrams, tables and requests, common mistakes, exercise and key takeaways. The practice exercises and answers are in the workbook, the examples in the collection.
Your notes stay on this device; they are not sent anywhere.
A question for the tutor
A result that doesn’t match the model answer, a prompt that gets you nowhere, a case specific to your business: write to us with your prompt and the response you got. A Bonbay Académie trainer replies within 24 working hours, on your case.