AutomationMart
Home/Browse/Automated daily backup of n8n workflows to GitLab repositories
n8n

Automated daily backup of n8n workflows to GitLab repositories

n8nn8n19 modulesv1.0
GitLab

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 are detected, the GitLab file is updated with the latest version. Core Logic: 1. Retrieve Workflows – Fetch all workflows from the n8n REST API. 2. Compare with GitLab – For each workflow, fetch the corresponding file from GitLab and compar

At a glance

Automated daily backup of n8n workflows to GitLab repositories is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects GitLab. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
GitLab
Modules
19
Price
Free
Version
v1.0
Automated daily backup of n8n workflows to GitLab repositories workflow diagram

About this workflow

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 are detected, the GitLab file is updated with the latest version. Core Logic: 1. Retrieve Workflows – Fetch all workflows from the n8n REST API. 2. Compare with GitLab – For each workflow, fetch the corresponding file from GitLab and compare the JSON. 3. Update if Changed – If differences exist, commit the updated workflow to GitLab using its API. --- Setup Before using the workflow, ensure the following: Prerequisites: - n8n: Self-hosted instance with access to the /rest/workflows API. - GitLab: A repository where workflows will be stored, and a Personal Access Token (PAT) with api and writerepository permissions. - n8n Nodes Required: - HTTP Request (to call n8n and GitLab APIs) - Code or Function nodes (for diffing and formatting) - Looping (SplitInBatches or similar) Configuration: - Set environment variables or workflow credentials for: - GITLABTOKEN - GITLABREPO - GITLABBRANCH (e.g., main) - GITLABFILEPATHPREFIX (e.g., n8n-workflows/) --- How to Use 1. Import the Workflow into your n8n instance. 2. Configure GitLab API Credentials: - Set the GitLab PAT as a header in the HTTP Request node: Private-Token: {{ $env.GITLABTOKEN }} 3. Map Workflows to GitLab Paths: - Use the workflow name or ID to create the file path. Example: n8n-workflows/workflow-name.json 4. Trigger the Workflow: - Can be manually triggered, or scheduled to run at intervals (e.g., daily). 5. Review Commits in GitLab: - Each updated workflow will be committed with a message like: "Update workflow: Sample Workflow" --- Disclaimer - This workflow does not handle merge conflicts or manual edits made directly in GitLab. Always ensure proper coordination if multiple sources are modifying workflows. - Only structural changes are tracked. Non-functional metadata (like timestamps or IDs) may trigger false positives unless filtered. - Use at your own risk. Test in a safe environment before applying to production workflows. ---

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Analyze GitLab CI job failures with GPT-5.3 and send reports to Slack

Overview This workflow helps automatically analyze the causes of build failures in Gitlab CI and propose solutions without involving DevOps engineers. See detailed setup guide How it work 1. Checks whether a job crashed. 1. Gets logs of the crashed job and a description of the pipeline. 1. The agent analyzes this data according to its system prompt. 1. During the process, the agent can retrieve additional data from Gitlab and check the availability of endpoints. 1. A report on the causes and sol

Free

Version control n8n workflows in GitLab with customer tag organization

How it works - Triggers manually or on schedule (03:00 daily by default) - Fetches workflows tagged backup-workflows via n8n API - Normalizes workflow names and applies [client: NAME] tag convention - Prepares JSON in the same structure as an n8n UI export - Checks GitLab repository: - Create new file if missing - Update file if content differs - Skip if unchanged - Logs results with recap (created, updated, unchanged, total) Set up steps - Configure your GitLa

Free

Post new GitLab issues to Mattermost

Every time a new GitLab issue is created, Make will automatically send a Mattermost message.

Free

Create a JIRA Server issue when a new GitLab issue is created

Every time a new GitLab issue is created, Make will automatically create a JIRA Server issue.

Free

Daily workflow backup to GitLab with Slack notifications

How it Works This workflow creates automated daily backups of your n8n workflows to a GitLab repository: 1. Scheduled Trigger - Runs automatically at noon each day to initiate the backup process 2. Fetch Workflows - Retrieves all active workflows from your n8n instance, filtering out archived ones 3. Compare & Process - Checks existing files in GitLab and compares them with current workflows 4. Smart Upload - For each workflow, either updates the existing file in GitLab (if

Free

Create Opsgenie Alert from new GitLab issues

Every time a new GitLab issue is created, Make will automatically creates a new Alert in Opsgenie.

Free

Monitor AI research papers with Gemini-powered filtering and email summaries

This n8n workflow template implements an intelligent research paper monitoring system that automatically tracks new publications in ArXiv's Artificial Intelligence category, filters them for relevance using LLM-based analysis, generates structured summaries, and delivers a formatted email digest. The system uses a three-stage pipeline architecture: 1. automated paper retrieval from ArXiv's API 2. AI-powered relevance filtering and analysis via Google Gemini 3. Intelligent summarization with HTML

Free

Telegram AI bot-to-human handoff for sales calls

This n8n template demonstrates an approach to perform bot-to-human handoff using Human-in-the-loop functionality as a switch. In this experiment, we play with the idea of states we want our agent to be in which controls it's interacton with the user. First state - the agent is onboarding the user by collecting their details for a sales inquiry. After which, they are handed-off / transferred to a human to continue the call. Second state - the agent is essentially "deactivated" as

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free