Who it's for
This n8n workflow automatically creates backups of all workflows from your n8n instance and stores them in a GitHub repository. The workflow runs on a schedule, creates clean JSON files for each workflow, updates a README file with backup details, logs backup information to Google Sheets, and sends notifications when the backup process is complete.
Features
- Scheduled Backups: Triggers at regular intervals to create fresh backups of all workflows
- Workflow Retrieval: Uses n8n API to fetch all workflows from your instance
- File Generation: Creates clean JSON files for each workflow with properly formatted names
- GitHub Integration: Uploads workflow files to a specified GitHub repository
- Documentation Updates: Automatically updates a README.md file with backup details inc luding date, time, and total workflow count
- Backup Logging: Records backup details in Google Sheets including workflow names, commit messages, dates, and download URLs
- Multi-Channel Notifications: Sends backup completion notifications via:
- WhatsApp (Rapiwa)
- Telegram
- Gmail
- Batch Processing: Processes workflows in batches to handle large numbers efficiently
- Error Handling: Includes wait periods between operations to prevent API rate limiting
Requirements
- n8n API credentials for accessing workflows
- GitHub API credentials for repository access and file creation
- Google Sheets OAuth2 credentials for logging backup information
- Rapiwa API credentials for WhatsApp notifications
- Telegram Bot API credentials for Telegram notifications
- Gmail OAuth2 credentials for email notifications
Configure Credentials
- n8n API: Set up credentials with access to your n8n instance
- GitHub API: Configure access to your target GitHub repository
- Google Sheets: Set up the target spreadsheet for logging backup information
- Notification Services: Configure Rapiwa, Telegram, and Gmail for notifications
Important Notes
- Repository Configuration: The workflow currently targets the "devcodejourney/testn8n" GitHub repository, which can be modified in the GitHub nodes
- File Naming: Workflow files are automatically cleaned of special characters and limited to 50 characters for compatibility
- Batch Processing: The workflow processes workflows in batches to handle large numbers efficiently
- Rate Limiting: Includes wait periods between operations to prevent API rate limiting
- Notification Content: All notifications include backup date, time, and total workflow count
- Documentation: The README.md file is updated with each backup to maintain current information
Support & Help