Skip to main content

Daily workflow backup to GitLab with Slack notifications

Workflow preview

Workflow preview
100%
Daily workflow backup to GitLab with Slack notifications preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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. F...

Best for

  • DevOps automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.n8n, n8n-nodes-base.filter, n8n-nodes-base.converttofile, n8n-nodes-base.if, n8n-nodes-base.set, n8n-nodes-base.aggregate, n8n-nodes-base.gitlab, n8n-nodes-base.scheduletrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Meelioo.

Original n8n.io source

1.1 Workflow description

Title
Daily workflow backup to GitLab with Slack notifications
Workflow name
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 it exists) or creates a new one
  5. Notification System - Sends success/failure notifications to a designated Slack channel with execution details

>The workflow intelligently handles each file individually, cleaning up unnecessary metadata before converting workflows to formatted JSON files ready for version control.

Set up Steps

Estimated setup time: 15-20 minutes

You'll need to configure three credential connections and customize the Configuration node:

  • GitLab API: Create a project access token with write permissions to your backup repository
  • n8n Internal API: Generate an API key from your n8n user settings
  • Slack Bot: Set up a Slack app with bot token permissions for posting messages to your notification channel

> Once credentials are configured, update the Configuration node with your GitLab project owner, repository name, and target branch. The workflow includes detailed setup instructions in the sticky notes for each credential type. After setup, activate the workflow to begin daily automated backups.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Get All Workflows

Type / Role
n8n-nodes-base.n8n - n8n
Config choices
Version 1

Block 2 - Discard Archived Workflows

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 3 - Convert to File

Type / Role
n8n-nodes-base.convertToFile - convertToFile
Config choices
Version 1.1

Block 4 - If File Exists

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 5 - Configuration

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - List of Names

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 7 - Create New File - GitLab

Type / Role
n8n-nodes-base.gitlab - gitlab
Config choices
Version 1

Block 8 - Update File - GitLab

Type / Role
n8n-nodes-base.gitlab - gitlab
Config choices
Version 1

Block 9 - List All Files - GitLab

Type / Role
n8n-nodes-base.gitlab - gitlab
Config choices
Version 1

Block 10 - Daily Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 11 - Process Each File

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 12 - Remove Unwanted Fields

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Send Message to Channel

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 14 - New File - Failed

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 15 - Update File - Failed

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 16 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Daily workflow backup to GitLab with Slack notifications
Complexity advanced
Nodes 22
Categories DevOps
Author Meelioo
Published 10 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9458/9458.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Daily workflow backup to GitLab with Slack notifications do?

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. F...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps use case.