Keep every n8n workflow backed up and versioned in GitLab without manual exports. Teams get a clear record of changes, simple rollback options, and a clean audit trail for reviews and handoffs.
The run starts on click, pulls all workflows from your n8n instance, and loops through them one by one. For each workflow, it checks if a JSON snapshot already exists in GitLab. If no file is found, it marks it as new and creates a JSON file. If a file exists, it extracts the stored JSON and compares it with the live version. Based on the result, it either updates the file, skips when nothing changed, or logs an error. A Switch node handles these paths, and GitLab commits include a clear message per workflow. Global settings hold the repo owner, name, branch, and path so you configure once and reuse across all items.
You need a GitLab repo and token, plus an n8n API key. Set the Globals for owner, repo, branch, and path, then click Test. Expect most exports to complete in minutes and reduce manual effort by a large margin. Great for governance, audits, disaster recovery, and team collaboration on automation assets.