Templates / Backup workflows to Git repository on Gitea

Backup workflows to Git repository on Gitea

Ready for 3.0

by Octoleo · 1,937 views · created 2025-01-29 · 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 13 nodes and runs on a schedule (every 45 minutes). It uses only n8n's built-in nodes.

How it runs

Trigger: On a schedule (every 45 minutes).

  1. Globals (Edit Fields (Set)): sets or maps fields
  2. n8n: uses n8n
  3. ForEach (Loop Over Items (Split in Batches)): loops over the items in batches
  4. GetGitea (HTTP Request): calls an HTTP API
  5. Exist (If): checks a condition and branches into true / false
  6. SetDataUpdateNode (Edit Fields (Set)): sets 1 field: item
  7. SetDataCreateNode (Edit Fields (Set)): sets 1 field: item
  8. Base64EncodeUpdate (Code): runs custom Python code
  9. Base64EncodeCreate (Code): runs custom Python code
  10. Changed (If): checks a condition and branches into true / false

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

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

Overview This workflow automates the backup of all workflows from your system to a Git repository hosted on Gitea. It runs on a scheduled trigger, fetching, encoding, and committing workflow data, ensuring seamless version control and disaster recovery. 📌…

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