Library / Code, Git & Developer Tools
Code, Git & Developer Tools
Back Up n8n Workflows to GitHub
On a schedule, it fetches every n8n workflow and creates or updates its file in a GitHub repository.
What it does
# Backup workflows to git repository ## Overview Automated workflow: Backup workflows to git repository. This workflow integrates 8 different services: stickyNote, code, scheduleTrigger, n8n, set. It contains 17 nodes and follows best practices for error handling and security. ## Workflow Details - Total Nodes: 17 - Node Types: 8 - Error Handling: ✅ Implemented - Security: ✅ Hardened (no sensitive data) - Documentation: ✅ Complete ## Node Breakdown - GitHub: github - Globals: set - n8n: n8n - Loop Over Items: splitInBatches - If Node: if - If1: if - Code: code - Create new file and commit: github - Update file content and commit: github - Schedule Trigger: scheduleTrigger - ... and 7 more nodes ## Usage Instructions 1. Configure Credentials: Set up all required API keys and credentials 2. Update Variables: Replace any placeholder values with actual data 3. Test Workflow: Run in test mode to verify functionality 4. Deploy: Activate the workflow for production use ## Security Notes - All sensitive data has been removed or replaced with placeholders - Error handling is implemented for reliability - Follow security best practices when configuring credentials ## Troubleshooting - Check error logs if workflow fails - Verify all credentials are properly configured - Ensure all required services are accessible
The steps
- GitHub
- Globals
- n8n
- Loop Over Items
- If Node
- If1
- Code
- Create new file and commit
- Update file content and commit
- Schedule Trigger
- Error Handler
Similar automations
Code, Git & Developer ToolsBack Up n8n Workflows to GitHub via Pull Requests22 stepsCode, Git & Developer ToolsRestore n8n Workflows from GitHub13 stepsCode, Git & Developer ToolsRestore n8n Workflows from GitHub, Skipping Existing Ones12 stepsCode, Git & Developer ToolsRestore n8n Workflows from Merged GitHub Pull Requests13 steps