n8n and workflows

Back up and restore n8n beyond workflow exports

Reading time
9 minutes
Updated
Published
Topic guide
n8n automation
Written by
modernagents editorial teammodernagents is an AI automation agency from Austria for SMEs, based in the Vienna region.
AI-generated image: Backup tape cartridge with an indigo casing on grey felt

You want to back up and restore n8n in case the server fails one day. Your IT provider may say: "We have backups." Still, you wonder whether everything really runs again on the morning after an outage, and whether no customer request gets lost or ends up twice in the CRM.

An n8n backup is useful only if it lets you resume the work your business depends on. Exporting the workflows is often not enough for this. The database, the key n8n uses to encrypt your credentials, the configuration and any required files or external storage must fit together. Recovery also needs a reconciliation of which actions already happened before the outage.

An example: a manufacturer of windows and doors in Riga with 45 employees runs n8n on its own server. When a customer reports a complaint on the website, n8n creates it in the CRM, the program where the business keeps its customers and requests, and attaches the customer's photos. Jānis from customer service works through the cases there. An external IT provider looks after the server.

Key takeaways

  • Without the correct key, a database backup may contain your records but still fail to restore working connections to your programs.
  • Rehearse recovery in a separate environment where n8n starts nothing by itself and writes nothing into your real programs.
  • After an outage, compare the unique references of the incoming cases with what really exists in the destination program, before n8n may write there again.

01 / 10

Is an n8n workflow export a backup?

At the window manufacturer, Jānis exports all workflows as a file once a month, "just to be safe". Such an export in JSON format helps transfer the logic of a workflow, or review how a workflow was configured. But it is not a complete image of your running system. The official n8n backup documentation explicitly distinguishes exports from full recovery. Product details in this guide were checked on 26 September 2026.

What you need to back up depends on the installation if n8n runs on your own server, as at the window manufacturer (self-hosting). Think of the database n8n uses, the n8n user directory or its configured location, external file storage and custom extensions, where applicable. A copied folder is not enough if the actual database lives in another service.

On top of that, n8n stores the credentials for the CRM, the mailbox and other programs in encrypted form, and to use them again after an outage, the corresponding key must be available. Suppose the IT provider then loads the database onto a new server but has not backed up the key. Then all records may be there, and still no connection to the CRM works. So keep the key in controlled storage, separate from ordinary project files that many people can access without protection.

02 / 10

Which n8n components must a backup cover?

Build your backup list from what you actually use. An n8n backup may need to cover six components: the workflow definitions, the database, keys and configuration, files and external storage, extensions and version records, and the business processing state, meaning which cases are done and which are still open.

Component Why it matters Recovery evidence
Workflow definitions Logic of the workflows and connections between steps A reference case follows the expected path
Database State of n8n and retained information The matching version opens with the expected objects
Keys and configuration Decryption and correct connections An approved test connection succeeds
Files and external storage Attachments or other required binary data, such as photos A reference file is fully retrievable
Extensions and version records Required nodes are available No missing components in the restored test
Business processing state Safe continuation of open cases Inputs reconcile with results in the destination program

Not every installation uses all of these components. Remove what does not apply to you, and add actual locations, owners and procedures. At the window manufacturer, for example, the customers' photos belong in the "Files" row. A generic checklist cannot replace someone looking at what really runs at your business.

Also include dependencies that are easy to overlook. For example, a workflow may call another workflow, such as one that makes the photos smaller. It may use a custom node or expect a particular environment setting, meaning a setting in the environment where n8n runs. A restore that imports only the visible workflows and misses these dependencies can appear complete until the first workflow runs.

03 / 10

Why does consistency matter more than a successful copy job?

There is also the question of whether the backed-up parts fit together. A backup must contain a state that you can restore. If files, database and configuration are copied at different times, the connection between them may be missing. Suppose the database is backed up at 2:00 and the photos at 3:00. A complaint that arrives at 2:30 then has photos in the backup, but no case in the database. For the database, use the backup method intended for it that produces a consistent state. The details are below under "For your IT team".

Also have someone show you where the backup is when the server or a part of it is set up again. The backup must remain accessible independently of which part is replaced.

Make the backup job show when it ran, whether it worked, how large the backup is and how long it is kept. If the file is suddenly much smaller than usual, or its timestamp has not changed for days, someone should investigate. A copy command that reports "successful" is not evidence that restoration will work.

Record how the parts belong together if several of them are backed up separately. The recovery instructions should name which configuration and which n8n version belong with a particular database backup.

04 / 10

How does backup frequency depend on tolerable data loss and interruption?

How often you back up depends on two questions: how much new work you can lose at most, and how long the process may stand still at most. Answers everyone in the business understands are, for example, "inputs from the last hour must be reconstructable" and "the process must be usable again within one working day". These are example objectives, not universal recommendations.

Then ask which information can be read in again and which exists only in n8n. A weekly report whose data remains available in the source program can be protected differently from a process in which people make unique decisions.

This also shows whether backups alone are sufficient. Suppose Jānis approves the free replacement of a damaged window in n8n at 10:00, and at 11:00 the server fails. Last night's backup does not know this decision. If it is not recorded elsewhere, Jānis may have to decide again after the restart. Do not hide this risk for your business behind an ambitious technical recovery target.

05 / 10

How do you rehearse recovery without repeating production actions?

For the exercise, restore a copy in a separate environment. There, block all triggers that start workflows by themselves and all connections that write into your real programs, before the copy can begin processing work. Otherwise, at the window manufacturer, the copy could immediately fetch the complaints and create them a second time in the real CRM. The exercise is a proposal and does not describe a test that someone has already performed.

After the restore, check in this order:

  1. First check the n8n version, the database and whether all required nodes are available.
  2. Next, check the credentials through an authorised test access and retrieve a known reference file, such as a photo from an old complaint.
  3. Only then run selected cases from daily work against destinations you control.

Measure the entire time, including the time until missing access is obtained and manual decisions are made. A 20-minute technical restore is of limited value if only one person can release the key and that person is away. Suppose the key is held only by the IT provider's technician, who is on holiday. Record every missing detail and update the instructions immediately.

The person doing the exercise should not need knowledge from the original developer that is not written down anywhere. A second person who follows the written instructions, for example a second technician, is a useful way to discover dependencies that nobody has ever written down.

Got a workflow like this?

Tell me about it. Honest take and a rough price, usually within a day.

06 / 10

How do you reconcile business outcomes after an outage?

Suppose the server at the window manufacturer fails one morning, and the IT provider restores n8n from the backup. In this example, the state looks like this:

State after the outage Complaints
Received 100
Created in the CRM before the outage 72
Still waiting for processing 18
Details missing, clarification needed 10
Created in the CRM according to the restored database 65

So the database from the backup knows nothing about seven entries that already exist in the CRM. If n8n now blindly restarts every apparently open case, it could create these seven a second time, and Jānis would then have seven complaints twice.

Instead, compare the unique references of the incoming complaints, such as their complaint numbers, with the entries that really exist in the CRM. The seven existing entries are recorded as matches, and only the 18 genuinely missing cases are processed. The ten cases with missing details stay visibly open and wait with Jānis.

This example shows why backup and duplicate protection belong together, meaning protection against the same case being created twice. A backup restores an earlier state, while the destination, here the CRM, may have continued processing in the meantime. Recovery must resolve this difference before n8n may write into your real programs again.

Where the destination program cannot be searched reliably by a stable reference, write down this limitation. Some unclear cases may then need a person to investigate instead of an automatic replay.

07 / 10

How do you protect backups, and what does n8n Cloud cover?

Backups can contain the same confidential information as your running system, at the window manufacturer for example names, addresses and photos from customers' homes. Decide who may access the backups, how they are encrypted, how long they are kept and how they are deleted in a controlled way. Do not export decrypted credentials into ordinary project storage.

Check which backup and restoration your contract covers if you use n8n Cloud. Your own export of the workflows may also help if you want to move later. But it does not establish which executions or other data can be recovered. Ask for concrete answers on what can actually be brought back after an accidental change or deletion, for example if someone deletes a workflow by mistake.

Acceptance should consist of a documented restore, followed by a check of whether the results are correct. Keep the date, the backup used, the elapsed time, outstanding differences and the approval. That turns "we have backups" into an evidenced ability to resume the business process after an outage.

After the server outage, Jānis compares the complaint numbers with the CRM before n8n creates the missing complaints.

08 / 10

For your IT team

Use a consistent backup method intended for the database. For SQLite, n8n describes stopping n8n before copying or using an appropriate consistent snapshot. PostgreSQL requires its own database backup procedure.

Files stored only in a container's transient filesystem can disappear when the container is removed or recreated. So check where the database, the user directory and the backups are after such a step.

If a justified migration temporarily requires plaintext, such as decrypted credentials, protect that step separately and remove the temporary plaintext material afterwards.

09 / 10

Take the worksheet

Worksheet

Download the editable CSV table

ComponentPurposeCheck
DatabaseWorkflows and stateConsistent restore
Encryption keyRecover usable credentialsProtected availability
File/external storageReferenced contentFiles actually present
Runtime configurationVersions and extensionsReproducible environment
RunbookRecovery sequenceAnother person can follow it

Columns to fill in, in the file: Your value / observation, Owner, Next action.

Download the editable CSV table (CSV). Add your own values, owners and open actions. This worksheet contains no measured client results.

10 / 10

These pages cover the service overview and the related decisions for n8n backup and recovery:

For a workflow review, start with the task, systems involved and typical exceptions. Discuss it with modernagents.

ShareEmail

Related reading

n8n automation

Got a workflow like this?

Tell me about it. Honest take and a rough price, usually within a day.

Robert Van Ysendyck · Founder & Managing Director