If you’re building and managing multiple automations with well-organized nested folders structure, then, losing a workflow due to accidental deletion or misconfiguration, can cost you hours of work and headache.
This can be even more impactful for self-hosted n8n instances.
This template solves that for any n8n setup (cloud or self hosted) by exporting a perfect mirrored setup of a whole n8n project, preserving the nested folder structure and the workflows within it.
All of it is uploaded in google drive under one main backup folder per execution to keep track of different setup versions along time.
This workflow is ideal for any n8n user, from beginner to advanced solo/team “flowgrammer” who wants to have a reliable, safe, automated and easy to access backup solution that reflects a perfect mirror of their n8n setup.
Scheduled Execution: The workflow runs automatically according to the schedule, could be up to X times a day (or can be triggered manually).
Creates backup Folder: It creates a new overall backup folder with a naming convention as “n8n_backup_folder_structure_DDMMYYYY_HHmmss” (i.e “n8n_backup_folder_structure_02022026_123343”) where the whole n8n nested folder structure along with workflows (JSON files) will be saved.
For example if an n8n workflow instance look like this, then same structure will be preserved and reflected on google drive along with the workflows within each folder :
// projects-root-folder/
// └── Your-project-folder-name/
// ├── Utilities/
└──Error_management
error_alerting.json
└──Log_analysis
// ├── Reports/
└──Clients
└──Client_A
└──Client_B
└──client_reporting_standard.json
// ├── ...
// └── workflow_test.json
Fetches the non documented n8n API: It connects to your n8n instance via the n8n API, not the documented one, but the one used directly from your UI when you manipulate your instance.
This API has been used instead of the native n8n node because it gives some more features that are being used here such as :
Configure Credentials: Make sure you have valid credentials for:
Set Your Variables: In the first Set node named "n8n instance/project access details":
n8n_instance_URL: Paste your n8n instance URL without the “/” at the end. For example : https://myautomations.app.n8n.cloudemailOrLdapLoginId: your login email addresspassword: your password

Create backup folder "n8n_backup_folder_structure_ddMMyyyy_HHmmss" ” from the List under “Parent Folder”,

Activate the workflow, and you're all set!