# Daily backup of n8n workflows to GitHub with automatic commits
This automation template ensures reliable daily backups and version control of workflows from a local n8n instance. It automatically syncs configurations to a GitHub repository, enabling teams to track changes, recover quickly from failures, and integrate automation governance into CI/CD pipelines.
## Who it´s for
- n8n developers who need secure, versioned backups of their workflows.
- DevOps engineers managing automation lifecycles in production.
- Teams using n8n in operational workflows and requiring audit trails and disaster recovery.
## What the automation does
- Runs daily at 23:59 via cron scheduler.
- Fetches all workflows via the local n8n HTTP API.
- Retrieves detailed configuration for each workflow.
- Compares current data with existing versions in GitHub.
- Creates or updates JSON files in the repository if changes are detected.
- Commits changes with descriptive messages for full traceability.
## What´s included
- Ready-to-use n8n workflow.
- Scheduled trigger and change-detection logic.
- Integrations with n8n HTTP API and GitHub API.
- Basic setup and adaptation guide.
## Requirements for setup
- Access to a local n8n instance with API enabled.
- GitHub account and a dedicated repository for backups.
- GitHub personal access token with write permissions.
- Running n8n instance (self-hosted or containerized).
## Benefits and outcomes
- Fully automated backup process without manual intervention.
- Version history with rollback capability.
- Transparent change tracking through Git commits.
- Protection against data loss due to crashes or misconfigurations.
- Easier collaboration and audit compliance.
- Compatibility with CI/CD and DevOps practices.
## 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