AcademyWorkflowsDevelopment

Back up n8n workflows to a GitLab repository

Developers and operations teams who keep their n8n workflows under version control.

  • Recommendedour rating
  • 4,702views on n8n
Open on n8n.io ↗

Paste it straight onto an n8n canvas with Ctrl+V or Cmd+V.

save-your-workflows-into-a-gitlab-repository.json

Loading the file...

What it does

This n8n workflow retrieves every workflow from an n8n instance and saves each one as a file in a GitLab project. Existing files are updated only when the workflow has real changes, and the run ends with a status for each workflow, including any errors from GitLab.

Use cases

  1. 01Back up all n8n workflows to GitLab
  2. 02Track workflow changes over time in Git
  3. 03Check which workflows failed during a backup

Connects

GitLab · Code

Questions about
Back up n8n workflows to a GitLab repository.

What is Back up n8n workflows to a GitLab repository used for?

Developers and operations teams who keep their n8n workflows under version control. This n8n workflow retrieves every workflow from an n8n instance and saves each one as a file in a GitLab project. Existing files are updated only when the workflow has real changes, and the run ends with a status for each workflow, including any errors from GitLab.

How do I import Back up n8n workflows to a GitLab repository into n8n?

Copy the workflow JSON from this page and paste it onto the n8n canvas with Ctrl+V or Cmd+V. Then connect your credentials in each node.

Is Back up n8n workflows to a GitLab repository safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.