Templates / Backup workflows to git repository on Github

Backup workflows to git repository on Github

Ready for 3.0

by Shashikanth · 7,637 views · created 2024-11-06 · 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 10 nodes and runs on a schedule (every minute). Along the way it connects GitHub.

How it runs

Trigger: On a schedule (every minute).

  1. Globals (Edit Fields (Set)): sets or maps fields
  2. n8n: uses n8n
  3. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  4. GitHub: get (file)
  5. If: checks a condition and branches into true / false
  6. Code: runs custom JavaScript code
  7. Create new file and commit (GitHub): work with file
  8. If: checks a condition and branches into true / false
  9. Update file content and commit (GitHub): edit (file)

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

From the author

Source code, I maintain this worflow here. Usage Guide This workflow backs up all workflows as JSON files named in the workflowname.json format. Steps 1. Create GitHub Repository - Skip this step if using an existing repository. 2. Add GitHub Credentials - In…

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