Backup n8n workflows to Bitbucket
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.
What this workflow does
This workflow has 9 nodes and runs on a schedule (every day at 02:00). It uses only n8n's built-in nodes.
How it runs
Trigger: On a schedule (every day at 02:00).
- Set Bitbucket Workspace & Repository (Edit Fields (Set)): sets 2 fields: WorkspaceSlug, RepositorySlug
- Get All Workflows (n8n): uses n8n
- Loop Workflows (Loop Over Items (Split in Batches)): loops over the items in batches
- Get Existing Worfklow from Bitbucket (HTTP Request): calls an HTTP API
- New or Changed? (If): checks a condition and branches into true / false
- Upload Workflow to Bitbucket (HTTP Request): calls an HTTP API (POST)
- Wait: pauses before continuing
- Calculate Wait Time (Code): runs custom JavaScript code
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 (8)
- Code
n8n-nodes-base.code - Schedule Trigger
n8n-nodes-base.scheduleTrigger - n8n
n8n-nodes-base.n8n - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Wait
n8n-nodes-base.wait - Edit Fields (Set)
n8n-nodes-base.set
From the author
An automated backup solution designed for self-hosted n8n users to automatically backup their workflows to Bitbucket, leveraging Bitbucket's free private repository offering. Perfect for maintaining version control of your n8n workflows without additional…