Templates / Automated n8n workflows backup on GitLab with username organization

Automated n8n workflows backup on GitLab with username organization

Ready for 3.0

by Oneclick AI Squad ✓ · 502 views · created 2025-07-03 · 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 12 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects GitLab.

How it runs

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

  1. Fetch N8N Workflows (n8n): uses n8n
  2. Prepare Backup Metadata (Edit Fields (Set)): sets 2 fields: backupDate, backupPath
  3. Process Each Workflow (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Log Backup Results (Edit Fields (Set)): sets 2 fields: errorLog, successLog
  5. Format Workflow for GitLab (Edit Fields (Set)): sets 4 fields: workflowData, creatorName, fileName…
  6. Send Email: sends an email over SMTP
  7. Rate Limit Control (Wait): waits 2 seconds
  8. Create to GitLab Repository (GitLab): work with file
  9. Check Backup Status (If): checks a condition and branches into true / false
  10. Update Backup Summary (GitLab): edit (file)

Services it uses

GitLab

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

Overview This solution ensures the secure backup and version control of your self-hosted n8n workflows by storing them in a GitLab repository. It compares current workflows with their GitLab counterparts, updates files when differences are detected, and…

Excerpt from Oneclick AI Squad'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.