Back up and restore n8n workflows with GitHub sync
Ready for 3.0What this workflow does
This workflow has 27 nodes and runs on a schedule (every day at 19:00) (plus 1 other trigger). Along the way it connects GitHub.
How it runs
Trigger: On a schedule (every day at 19:00) (plus 1 other trigger).
- Set Github Data (Edit Fields (Set)): sets 2 fields: repo_owner, repo_name
- Set Github Data (Edit Fields (Set)): sets 2 fields: repo_owner, repo_name
- Get Download Url for Index File (GitHub): get (file)
- List Workflow Files (GitHub): list (file)
- Get Index File Content (HTTP Request): calls an HTTP API
- Index File Not Found (If): checks a condition and branches into true / false
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Workflows Folder Not Found (If): checks a condition and branches into true / false
- Get All Workflows (n8n): uses n8n
- Create Index File (GitHub): work with file
…plus 15 more steps. See the full node list below.
Services it uses
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.
Nodes used (12)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - GitHub
n8n-nodes-base.github - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - Manual Trigger
n8n-nodes-base.manualTrigger - Wait
n8n-nodes-base.wait - n8n
n8n-nodes-base.n8n - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Merge
n8n-nodes-base.merge - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches
From the author
n8n Workflows GitHub Manager > A comprehensive n8n workflow that provides complete bidirectional sync between your n8n instance and GitHub - automatically backs up all your workflows with intelligent change detection AND restores them when needed. This…