Templates / Backup n8n workflows to Github

Backup n8n workflows to Github

Ready for 3.0

by Dat Proto · 2,832 views · created 2025-05-12 · DevOps

Ready 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 27 nodes and runs manually, when you click “Execute workflow” (plus 2 other triggers). Along the way it connects GitHub and Discord.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 2 other triggers).

  1. Starting Message (Discord): work with message
  2. Config (Edit Fields (Set)): sets 3 fields: repo_owner, repo_name, data
  3. n8n: uses n8n
  4. Merge: merges the data from its input branches
  5. Get file data (GitHub): get (file)
  6. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  7. verifyTheDifference (Code): runs custom JavaScript code
  8. If: checks a condition and branches into true / false
  9. Wait: waits 10 seconds
  10. Execute Workflow (Execute Sub-workflow): calls another n8n workflow

…plus 11 more steps. See the full node list below.

Services it uses

GitHubDiscord

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 (15)

From the author

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…

Excerpt from Dat Proto's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.