Developer & DevOps
Backup workflow to a repository
17 nodes
210
113
Scheduled trigger
Workflow Description
A scheduled workflow that automatically backs up n8n workflow configurations to a GitHub repository, processing data in batches with conditional logic to ensure reliable backup operations.
How it works
- 1.Execute workflow on a defined schedule
- 2.Retrieve workflow data from n8n and partition into batches
- 3.Apply conditional rules and custom code logic to batch data
- 4.Commit and push backup to GitHub repository
Use cases
- Protect workflow configurations against unexpected loss or system failures
- Maintain version history of workflow changes and updates
- Enable rapid recovery and restoration during emergencies
Requirements
- Active GitHub account with write permissions to target repository
- Secure API authentication for both n8n and GitHub services
- Scheduled trigger configuration with appropriate frequency
Service Value
Ready-made workflow template for automation delivery and service execution.
Apps Used
GitHub
N8N
Split In Batches
Details
Trigger
Scheduled trigger
Nodes
17
Apps
3
Views
210
Downloads
113
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (17)
/
GitHub
Github
Globals
Set
n8n
N8N
Loop Over Items
Split In Batches
If
If
If1
If
Code
Code
Create new file and commit
Github
Update file content and commit
Github
Schedule Trigger
Schedule Trigger
Sticky Note
Sticky Note
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note
Sticky Note5
Sticky Note
Sticky Note6
Sticky Note