Daily Workflow Backup to GitLab with Slack Notifications

Go to Workflow
4 views
Built by Meelioo Meelioo
Created on June 06, 2026

Description

How it Works

This workflow creates automated daily backups of your n8n workflows to a GitLab repository:

Scheduled Trigger - Runs automatically at noon each day to initiate the backup process
Fetch Workflows - Retrieves all active workflows from your n8n instance, filtering out archived ones
Compare & Process - Checks existing files in GitLab and compares them with current workflows
Smart Upload - For each workflow, either updates the existing file in GitLab (if it exists) or creates a new one
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.

Nodes Used (3)

Code
n8n-nodes-base.code
GitLab
n8n-nodes-base.gitlab
Slack
n8n-nodes-base.slack