Templates / Automated n8n workflow backup to GitHub with deletion tracking

Automated n8n workflow backup to GitHub with deletion tracking

Ready for 3.0

by Marcial Ambriz · 7,056 views · created 2025-07-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.

How it runs

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

  1. Globals (Edit Fields (Set)): sets 2 fields: repo.owner, repo.name
  2. Switch: routes items into 2 branches
  3. Get many workflows (n8n): uses n8n
  4. Get file data (GitHub): get (file)
  5. Merge: merges the data from its input branches
  6. isDeleted (Code): runs custom JavaScript code
  7. Workflows (Aggregate): combines items into one
  8. n8n (Edit Fields (Set)): sets 3 fields: repo.owner, repo.name, origin
  9. If: checks a condition and branches into true / false
  10. isDiffOrNew (Code): runs custom JavaScript code

…plus 11 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 (15)

From the author

Remixed Backup your workflows to GitHub from Solomon's work. Check out his templates. How it works This workflow will backup your workflows to GitHub. It uses the n8n API node to export all workflows. It then loops over the data, checks in GitHub to see if a…

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