Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

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

  1. GitHub
  2. Globals
  3. n8n
  4. Loop Over Items
  5. If Node
  6. If1
  7. Code
  8. Create new file and commit
  9. Update file content and commit
  10. Schedule Trigger
  11. Error Handler

Similar automations