# Backup and sync n8n workflows to GitHub on schedule or manually
This automation ensures reliable backup and version control of n8n workflows by syncing them daily with a GitHub repository. Ideal for teams requiring auditability, disaster recovery, and centralized workflow management.
## Who it´s for
- n8n administrators needing regular workflow backups.
- Developers using GitHub for version control of automations.
- DevOps teams integrating n8n into CI/CD pipelines.
- n8n users working in teams who need a single source of truth for workflows.
## What the automation does
- Runs on a cron schedule, manually, or via API trigger.
- Fetches all workflows via n8n API.
- Compares them with files in the GitHub repository, determining status: new, different, same.
- Creates or updates JSON files in GitHub with descriptive commits.
- Deletes files in the repo if workflows are removed in n8n.
- Uses subworkflow batching to manage memory efficiently.
## What´s included
- Ready-to-use n8n workflow.
- Trigger logic: cron, manual execution, API call.
- Integrations with n8n API and GitHub API.
- Basic text instructions for launch and adaptation.
## Requirements for setup
- Access to an n8n instance with API enabled.
- A GitHub account with a dedicated repository for backups.
- A GitHub personal access token with write permissions.
- Basic understanding of APIs and JSON handling in n8n.
## Benefits and outcomes
- Full version history of workflows via Git.
- Fast recovery after errors or accidental deletions.
- Centralized storage for team-wide automation governance.
- Automatic cleanup of obsolete files.
- Scalable processing of large numbers of workflows.
- Time savings from eliminating manual exports and version tracking.
## 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