Back up n8n workflows to google drive while preserving folder structure
Ready for 3.0What this workflow does
This workflow has 154 nodes and runs on a schedule (every day) (plus 1 other trigger). Along the way it connects Google Drive and Google Sheets.
How it runs
Trigger: On a schedule (every day) (plus 1 other trigger).
- n8n instance/project access details (Edit Fields (Set)): sets 3 fields: n8n_instance_URL, emailOrLdapLoginId, password
- n8n instance/project access details (Edit Fields (Set)): sets 3 fields: n8n_instance_URL, emailOrLdapLoginId, password
- n8n login API (HTTP Request): calls an HTTP API (POST)
- n8n login API (HTTP Request): calls an HTTP API (POST)
- n8n-auth for n8n API (Edit Fields (Set)): sets 1 field: n8n-auth
- n8n-auth for n8n API (Edit Fields (Set)): sets 1 field: n8n-auth
- get projectId (HTTP Request): calls an HTTP API
- get subfolder(s) structure (HTTP Request): calls an HTTP API
- get projectId (HTTP Request): calls an HTTP API
- create n8n table "folders" (HTTP Request): calls an HTTP API (POST)
…plus 142 more steps. See the full node list below.
Services it uses
Other Google Drive + Google Sheets templates (720)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (18)
- HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - Google Drive
n8n-nodes-base.googleDrive - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - Split Out
n8n-nodes-base.splitOut - Aggregate
n8n-nodes-base.aggregate - Remove Duplicates
n8n-nodes-base.removeDuplicates - Code
n8n-nodes-base.code - Sort
n8n-nodes-base.sort - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Filter
n8n-nodes-base.filter - Convert to File
n8n-nodes-base.convertToFile - Data table
n8n-nodes-base.dataTable - Google Sheets
n8n-nodes-base.googleSheets - Extract from File
n8n-nodes-base.extractFromFile - Manual Trigger
n8n-nodes-base.manualTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Back up & restore n8n workflows with preserved folder structure with GoogleDrive A. Backup workflows solution to google Drive ✅ What problem does this workflow solve? If you’re building and managing multiple automations with well-organized nested folders…