Hello,
This is a very important point and should be at the core of n8n.
I noticed while working with n8n ‘the self-hosted’ the importing/exporting of flows (Backup and restore) is good but for basic flows or if we have few numbers, but how we can handle the below scenarios:
If we have +50 flows
If we have +50 app credentials
If some flows are related to each other and linked (e.g. flow a related to flow b and so on)
It would be great if we had an easy way of handling the above scenario and reducing the complexity of this process.
barn4k
March 30, 2024, 8:36pm
2
The easiest way is to backup the database, as n8n stores all workflows and credentials data there. You only have to save the encryption key somewhere to decrypt it later
Hi @barn4k ,
Thanks a lot for your suggestion but this is not the easy way at all because of the below:
Suppose that I’m not a technical person, how could I do that?
How to do this with different DB used (e.g. SQLite or PostgresDB)?
How to do this with different installations for n8n (e.g. npm, docker, server, … etc.)?
What I hope to see is something really simple for non-tech to do backup and restore without complications.
1 Like
solomon
October 19, 2024, 11:12am
4
Yeah, I’m running into this issue right now. Trying to find out how to import credentials into a new instance.
Jon
October 19, 2024, 10:23pm
5
@solomon have you tried using the cli which lets you export and import all or selected workflows and credentials?
1 Like
After tweaking my workflow a little I got it working!
Will post a template later =) Thanks!
@solomon
I encountered the same issue. Could you share your template? Thank you!
solomon
December 18, 2024, 3:08pm
8
This is the workflow to backup your credentials to GitHub.
To import the credentials you can create a simple workflow and use the N8N node action called “Create credential”
You can pull the files from GitHub and import the credentials. It works pretty well.
4 Likes
@solomon
Thank you for sharing the workflow, but it doesn’t work on n8n cloud. I haven’t found a solution yet.
opened 05:24AM - 18 Dec 24 UTC
closed 06:12AM - 18 Dec 24 UTC
in linear
### Bug Description
I am testing the n8n cloud server and have created many cre… dentials and workflows. I tried using the workflow below to back up the credentials,
https://n8n.io/workflows/2307-backup-your-credentials-to-github/
but it shows the error as shown in the screenshot.

### To Reproduce
1. copy workflow
2. run it
### Expected behavior
do it
### Operating System
n8n cloud
### n8n Version
1.72.1
### Node.js Version
18.16.0
### Database
SQLite (default)
### Execution mode
main (default)
Is there a quick video for this as it can help a lot.
Take a look at this new template:
If you have the self-hosted version, this will work well with my backup template
3 Likes
Many thanks for this. I have the self-hosted so I will definitely test it.
2 Likes