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 - R...
Template notes
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