Templates / Automated daily backup of n8n workflows to GitLab repositories

Automated daily backup of n8n workflows to GitLab repositories

Ready for 3.0

by Akhil Varma Gadiraju ✓ · 2,787 views · created 2025-05-14 · 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 19 nodes and runs on a schedule (every day). Along the way it connects GitLab.

How it runs

Trigger: On a schedule (every day).

  1. GitLab: get (repository)
  2. Globals (Edit Fields (Set)): sets or maps fields
  3. Retrieve all workflows (n8n): uses n8n
  4. Loop Over Workflows (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Get file (GitLab): get (file)
  6. Extract from File: extracts data from a file (from json)
  7. Save each version in a different field (Edit Fields (Set)): sets or maps fields
  8. File status (Code): runs custom JavaScript code
  9. Switch: routes items into 3 branches
  10. Create file (GitLab): work with file

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

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (9)

From the author

n8n Workflow: Sync Workflows with GitLab How It Works This workflow ensures that your self-hosted n8n workflows are version-controlled in a GitLab repository. It compares each current workflow from n8n with its stored counterpart in GitLab. If any differences…

Excerpt from Akhil Varma Gadiraju'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.