# Backup n8n workflows to GitHub with branch and pull request creation
This automation ensures reliable backup and version control of n8n workflows via GitHub. It enables developers and DevOps teams to maintain change history, track updates through pull requests, and receive Slack notifications — all without manual JSON exports.
## Who it´s for
- n8n developers who want to back up their workflows
- Automation engineers using Git for version control
- DevOps teams implementing CI/CD for low-code solutions
- n8n administrators needing audit trails for changes
## What the automation does
- Manually triggered on demand
- Fetches all current n8n workflows in JSON format
- Compares them with versions in a GitHub repository
- Creates a new branch if new or modified workflows are detected
- Commits updated files and opens a pull request
- Sends success/failure notification to a designated Slack channel
## What´s included
- Ready-to-use n8n workflow
- Trigger and handler logic
- Integrations with GitHub API and Slack
- 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 and appropriate token permissions
- Slack account with configured incoming webhook for notifications
## Benefits and outcomes
- Automatic backup of all n8n workflows
- Full change history via Git
- Transparent merge process using pull requests
- Centralized storage of automations in a single repo
- Real-time status notifications in Slack
- Support for team collaboration and audit compliance
- Time savings on manual export and commit processes
## 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