Sync self-hosted workflow backups to GitHub for version control
Workflow preview
DISCOUNT 20%
Overview
Automatically back up and sync your n8n workflows to GitHub with unlimited version control. This workflow ensures your repository always reflects the latest state of your n8n instance by creating, updating, and deleting workflow files as needed.
Ideal for developers, teams, and DevOps use cases where workflow backup, versioning, and audit tracking are important.
βΎοΈ Unlimited Version Control
This workflow enables unlimited version control using GitHub, solving the limitation of version history that is not available in the self-hosted free version of n8n.
Every workflow change is stored as a Git commit, allowing you to:
Track full history of changes Roll back to previous versions anytime Maintain a reliable audit trail
β‘ Key Features
π Automatic Sync β Runs on a schedule to keep workflows updated π Create New Workflows β Automatically adds new workflows to GitHub βοΈ Update Only When Changed β Detects and updates modified workflows π§Ή Auto Cleanup β Removes deleted or renamed workflows from GitHub β‘ Smart Diff Check β Skips unchanged workflows to avoid unnecessary commits π Timestamped Commits β Clear and trackable commit history βΎοΈ Unlimited Version Control β Store unlimited workflow versions in GitHub
π οΈ How It Works
Fetch existing files from your GitHub repository Retrieve all workflows from your n8n instance via API Compare workflows using size-based change detection Create or update workflow JSON files in GitHub Remove orphaned files (deleted or renamed workflows)
βοΈ Setup Requirements
GitHub Personal Access Token (with repo scope) n8n API Key (Settings β API) A GitHub repository for storing workflow backups Update GitHub nodes with your repository name and owner Configure the schedule trigger as needed
π File Naming
Workflows are stored as: workflow-name.json (lowercase, hyphen-separated)
π‘οΈ Safety Mechanism
Includes a safety check to prevent accidental deletion of all files if the n8n API returns zero workflows (e.g., due to an error).
π‘ Use Cases
Backup and restore n8n workflows Version control and change tracking Team collaboration via GitHub CI/CD integration for workflow management
π¬ Support
Contact us for suggestions or support: [email protected]