Back up all workflows to GitHub with daily schedule and Telegram /backup
Ready for 3.0What this workflow does
This workflow has 9 nodes and runs on a schedule (cron 0 3 * * *) (plus 1 other trigger). Along the way it connects Telegram and GitHub.
How it runs
Trigger: On a schedule (cron 0 3 * * *) (plus 1 other trigger).
- Fetch All Workflows (n8n): uses n8n
- Filter: keeps only the items that match a condition
- Build Backup File (Code): runs custom JavaScript code
- Check File Existence in GitHub (GitHub): get (file)
- Update File on GitHub (GitHub): edit (file)
- Create File on GitHub (GitHub): work with file
- Notify via Telegram (Telegram): uses Telegram
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
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
From the author
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…