Backup workflows to git repository on Github
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This workflow has 10 nodes and runs on a schedule (every minute). Along the way it connects GitHub.
How it runs
Trigger: On a schedule (every minute).
- Globals (Edit Fields (Set)): sets or maps fields
- n8n: uses n8n
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- GitHub: get (file)
- If: checks a condition and branches into true / false
- Code: runs custom JavaScript code
- Create new file and commit (GitHub): work with file
- If: checks a condition and branches into true / false
- Update file content and commit (GitHub): edit (file)
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 (7)
- GitHub
n8n-nodes-base.github - Edit Fields (Set)
n8n-nodes-base.set - n8n
n8n-nodes-base.n8n - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Source code, I maintain this worflow here. Usage Guide This workflow backs up all workflows as JSON files named in the workflowname.json format. Steps 1. Create GitHub Repository - Skip this step if using an existing repository. 2. Add GitHub Credentials - In…