# Scheduled backup of n8n workflows to GitHub with versioning support
This automation backs up all workflows from your n8n instance to a GitHub repository on a schedule, ensuring data safety and version control. The process runs autonomously without manual intervention.
## Who it´s for
- n8n administrators needing regular workflow backups.
- Developers using GitHub for version control of automations.
- DevOps teams implementing IaC and Git-based configuration management.
## What the automation does
- Triggered by a cron schedule.
- Retrieves existing filenames from the target GitHub repository.
- Fetches all active workflows from the current n8n instance.
- Converts each workflow to JSON and encodes it in base64.
- Checks if a file with the generated name exists: updates if present, uploads as new if not.
- Commits changes with a timestamped message.
## What´s included
- Ready-to-use workflow for n8n + GitHub automation.
- Pre-built trigger and handler logic.
- Integrations only with services listed in stack/services.
- Basic textual instructions for launch and adaptation.
## Requirements for setup
- Access to an n8n instance with read permissions for workflows.
- GitHub account with repository access (personal access token recommended).
- A GitHub repository designated for storing workflow backups.
## Benefits and outcomes
- Protection against data loss due to server or database failure.
- Full version history via Git.
- Clear commit timeline showing when changes were made.
- Centralized storage of all automations in one repository.
- Ability to restore previous versions using Git history.
- Scalable: handles any number of workflows.
## 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