# Backup n8n workflows to GitLab with change detection and scheduled runs
This automation ensures reliable, version-controlled backup of n8n workflows to a central GitLab repository. It´s designed for teams running n8n in production environments where configuration integrity and auditability are critical.
## Who it´s for
- n8n administrators seeking automated backup solutions.
- DevOps engineers using GitLab for configuration management and CI/CD.
- Teams requiring version control and audit trails for workflows.
- Professionals preparing for system updates or migrations.
## What the automation does
- Triggers on schedule (cron) or manually.
- Fetches all n8n workflows tagged for backup (e.g., ´gitlab_backup_enabled´).
- Generates JSON files with full workflow descriptions.
- Checks if file exists in GitLab repo and compares content.
- Skips unchanged files to avoid redundant commits.
- Creates or updates files in the main branch with descriptive commit messages including execution type and timestamp.
## What´s included
- Ready-to-use workflow for n8n + GitLab automation.
- Trigger logic (cron and manual start).
- Integrations with n8n API and GitLab API.
- JSON processing and content diff logic.
- Basic setup and adaptation guide.
## Requirements for setup
- Access to an n8n instance with API enabled.
- GitLab account with write permissions to target repository.
- GitLab access token with required scopes.
- Tag name configured for workflow filtering.
## Benefits and outcomes
- Automated backups eliminate risk of configuration loss.
- Saves storage and time by skipping unchanged files.
- Clear version history in a centralized Git repository.
- Supports both scheduled backups and on-demand snapshots before system changes.
- Seamlessly integrates into existing DevOps practices using Git.
## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat
No feedback yet