# Automated scheduled backup of n8n workflows to GitHub with file check
This automation template enables regular backup of active n8n workflows into a GitHub repository. It ensures full traceability through git history and allows quick recovery of configurations after failures. Ideal for teams and professionals managing automation workflows at scale.
## Who it´s for
- DevOps engineers managing version control of n8n workflows
- n8n administrators requiring automated backups
- Developers integrating n8n with Git repositories
- Teams focused on auditability and recovery of automations
## What the automation does
- Triggered on a cron schedule
- Retrieves all active workflows from n8n via internal API
- Converts workflow data into JSON and encodes in base64
- Checks if a file exists in GitHub — updates or creates accordingly
- Saves files with names based on workflow name, tag, and commit timestamp
- Maintains full change history using git
## What´s included
- Ready-to-use n8n workflow
- Cron trigger logic and data processing nodes
- Integration with GitHub API and n8n internal API
- Basic text instructions for setup and adaptation
## Requirements for setup
- Access to an n8n instance with read permissions for workflows
- GitHub account with repository access via Personal Access Token
- Pre-configured GitHub repository for storing backups
## Benefits and outcomes
- Fully automated backup process without manual intervention
- Ability to track workflow changes via git diff and commit history
- Fast recovery after data loss in n8n
- Centralized configuration storage
- Improved transparency and auditability across developer teams
- Reduced risks during updates and migrations
## 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