Back up all workflows to GitHub with daily schedule and Telegram /backup
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Telegram Trigger
n8n-nodes-base.telegramTrigger - Filter
n8n-nodes-base.filter - n8n
n8n-nodes-base.n8n - Code
n8n-nodes-base.code - GitHub
n8n-nodes-base.github - Telegram
n8n-nodes-base.telegram
What it does
Quick overview This workflow backs up all workflows from your n8n instance to a GitHub repository every day at 03:00, and also supports an on-demand Telegram /backup command, then sends a Telegram message with the backup result and commit link. How it works 1. Runs daily at 03:00 and also triggers when a Telegram message is received. 2. Checks that the incoming Telegram message starts with /backup before proceeding with the manual run. 3. Fetches all workflows from the n8n instance via the n8n API. 4. Builds a JSON backup file containing the workflows and sets the GitHub file path as backups/YYYY-MM-DD/workflows.json. 5. Checks in GitHub whether the backup file already exists and either updates it or creates it with a dated commit message. 6. Sends a Telegram notification to the triggering chat (or a predefined admin chat for scheduled runs) including the workflow count and GitHub commit URL. Setup 1. Create and select an n8n API credential that can read workflows from your n8n instance. 2. Add a GitHub credential with access to the target repository and set the owner/repo values to your backup repo. 3. Add a Telegram bot credential, enable the Telegram trigger webhook, and use the bot to send /backup from the chat you want to control backups. 4. Update the admin Telegram chat ID in the code step if you want scheduled backups to notify a specific group or channel.