This workflow automates the backup of all your n8n workflows to a Bitbucket repository on a daily schedule. It ensures your workflows are safely stored and versioned, reducing the risk of data loss. The process begins with a scheduled trigger at 2 AM, fetching all existing workflows from the n8n instance via API. It then compares each workflow with the latest version stored in Bitbucket to identify new or modified workflows. For each new or updated workflow, it uploads the latest version to Bitbucket. To prevent exceeding rate limits on Bitbucket’s API, it strategically waits between requests based on rate limit headers, ensuring stable and reliable backups. This setup is ideal for developers and automation teams who want to maintain version control and secure their n8n workflows efficiently.
Automated Backup of n8n Workflows to Bitbucket
Node Count | 6 – 10 Nodes |
---|---|
Nodes Used | code, httpRequest, if, n8n, scheduleTrigger, set, splitInBatches, wait |
Reviews
There are no reviews yet.