Templates / Backup your workflows to GitHub -- in (subfolders)

Backup your workflows to GitHub -- in (subfolders)

Ready for 3.0

by Nazmy ✓ · 6,046 views · created 2025-02-08 · 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 21 nodes and runs manually, when you click “Execute workflow” (plus 2 other triggers). Along the way it connects GitHub.

How it runs

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

  1. n8n: uses n8n
  2. Merge: merges the data from its input branches
  3. tag? (Switch): routes items into 2 branches
  4. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  5. isDiffOrNew (Code): runs custom JavaScript code
  6. / (Edit Fields (Set)): sets 1 field: tags[0].name
  7. Globals (Edit Fields (Set)): sets 3 fields: repo.owner, repo.name, repo.path
  8. Execute Workflow (Execute Sub-workflow): calls another n8n workflow
  9. Check Status (Switch): routes items into 3 branches
  10. Get file data (GitHub): get (file)

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

Services it uses

GitHub

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

From the author

Based on Jonathan & Solomon work. > The only addition I've made is a Set node. This node organizes workflows into subfolders within the GitHub repository based on their respective tags. How it works This workflow will backup your workflows to GitHub. It…

Excerpt from Nazmy'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.