Secure n8n Workflows: Automated Daily GitHub Backup
Automatically back up all n8n workflows to GitHub daily, ensuring 100% data redundancy and quick recovery from unexpected failures.
Losing n8n workflows due to accidental deletion or instance failure can halt critical automations. This workflow automatically backs up all your n8n workflows to a GitHub repository daily, ensuring secure version control and easy recovery.

Documentation
Secure Your n8n Workflows with Automated GitHub Backups
Manual workflow backups are tedious and prone to human error, risking the loss of valuable automation logic. This n8n workflow eliminates that risk by providing a robust, automated solution for daily backups of all your n8n workflows directly to a GitHub repository.
Key Features
- Daily, hands-free backups of all active n8n workflows.
- Automatic detection of new workflows to create new backup files.
- Intelligent update mechanism for existing workflows, only saving changes.
- Version control and easy recovery via GitHub's history.
- Centralized repository for all your n8n automation logic.
How It Works
The workflow is triggered daily at 23:59. It first fetches a list of all current workflows from your n8n instance via its REST API. Simultaneously, it retrieves the existing backup files from your specified GitHub repository. It then intelligently compares the live workflows with their GitHub backups. Any newly created workflows are identified and new .json files are committed to GitHub. Workflows that have been updated since their last backup are detected, and their corresponding files in GitHub are overwritten with the latest version. This ensures your GitHub repository always reflects the most recent state of your n8n automations.