Backup n8n workflows to 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.
Nodes used (15)
- Manual Trigger
n8n-nodes-base.manualTrigger - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - n8n
n8n-nodes-base.n8n - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Merge
n8n-nodes-base.merge - No Operation, do nothing
n8n-nodes-base.noOp - GitHub
n8n-nodes-base.github - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Discord
n8n-nodes-base.discord - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Wait
n8n-nodes-base.wait - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch
What it does
Introduction This workflow will backup all of your existed workflows to a single Github repository. The Backup folders' name are based on the current backup date and have default format: "yyyy/MM/dd" (setup at "Create sub path" node). Throughout the backup process, the N8N will inform user via discord with clear message about Start, Success and Failure backups. The workflow will be Tech Stack The following nodes / services / libraries are used in this workflow: Nodes: 1. Discord: To send message to configured setup channel. 2. N8N: To get all workflows' information. 3. Github: To store backup data. 4. Code: To run data comparison (Existed vs Latest workflow data). 5. Wait: To avoid discord message rate limit. External libraries: 1. Underscore.js: JavaScript library that provides lots of common Javascript functions, to help user save time when using code node. Guideline 1. Open "Config" node and setup the following information: - repoowner: Your Github username. - reponame: The repository that you want to store workflows backup data. 2. Open "Create sub path" node and change the naming and path format of backup folder(s). 3. Setup custom messages in 3 discord nodes: - Starting Message: N8N inform user at the time workflow start. - Inform Success Flows: After each success backup, N8N will notify user. - Inform Failed Flows: After each failure backup, N8N will notify user to have appropriate action. - Completed Notifications: Then at the final, the workflow will give user a summary. 4. Setup "Schedule Trigger" node to change default automated backup time. Screenshots Discord output !image.png(fileId:1309)