Templates / Sync self-hosted workflow backups to GitHub for version control

Sync self-hosted workflow backups to GitHub for version control

Ready for 3.0

by Ucartz Online · 263 views · created 2026-04-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 14 nodes and runs on a schedule (every day). Along the way it connects GitHub.

How it runs

Trigger: On a schedule (every day).

  1. List Files in GitHub Repo (GitHub): list (file)
  2. Collect GitHub Filenames (Aggregate): combines items into one
  3. Fetch All n8n Workflows (n8n): uses n8n
  4. Filter Changed/New Workflows (Code): runs custom JavaScript code
  5. Convert Workflow to JSON File (Convert to File): converts data to a file (to json)
  6. Encode as Base (Extract from File): extracts data from a file (binary to propery)
  7. Build Filename & Commit Date (Edit Fields (Set)): sets 2 fields: commitDate, fileName
  8. File Already Exists in Repo? (If): checks a condition and branches into true / false
  9. Update Existing File (GitHub): edit (file)
  10. Create New File (GitHub): work with file

…plus 3 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 (9)

From the author

Automatically back up and sync your n8n workflows to GitHub with unlimited version control. This workflow ensures your repository always reflects the latest state of your n8n instance by creating, updating, and deleting workflow files as needed. Ideal for…

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