Automated n8n Workflow Backups to Bitbucket
detail.loadingPreview
Ensure your critical n8n workflows are securely backed up to Bitbucket with this automated solution. This workflow runs daily, checks for changes, and intelligently handles API rate limits to maintain reliable backups.
About This Workflow
This n8n workflow provides a robust solution for automatically backing up all your n8n workflows to a specified Bitbucket repository. Triggered daily, it fetches all existing workflows from your n8n instance. Each workflow is then compared against its counterpart in Bitbucket. If a workflow is new or has been modified, it's updated in Bitbucket with a descriptive commit message. The workflow includes intelligent rate limit handling for the Bitbucket API, pausing execution when necessary to prevent throttling and ensure uninterrupted backups. This proactive approach guarantees that your workflow configurations are always up-to-date and safely stored.
Key Features
- Scheduled Daily Backups: Automatically backs up n8n workflows every day at 2 AM.
- Intelligent Change Detection: Only uploads workflows that are new or have been modified.
- Bitbucket Integration: Seamlessly stores backups as files in your designated Bitbucket repository.
- API Rate Limit Management: Dynamically adjusts wait times to avoid hitting API rate limits.
- Error Handling: Continues execution even if retrieving existing Bitbucket files fails (e.g., for new workflows).
How To Use
- Schedule Trigger: Configure the 'Run Daily at 2 AM' node to set your preferred backup schedule.
- Set Bitbucket Details: In the 'Set Bitbucket Workspace & Repository' node, provide your Bitbucket Workspace Slug and Repository Slug.
- n8n Credentials: Add your n8n API credentials to the 'Get All Workflows' node.
- Bitbucket Credentials: Add your Bitbucket HTTP Basic Authentication credentials to the relevant Bitbucket nodes.
- Review Logic: Understand the 'Get Existing Worfklow from Bitbucket' and 'New or Changed?' nodes to see how changes are detected.
- Upload Logic: Examine the 'Upload Workflow to Bitbucket' node to understand how new/changed workflows are committed.
- Rate Limit Handling: The 'Calculate Wait Time' and 'Wait to Avoid Rate Limiting' nodes manage API call pacing; no direct configuration is usually needed here.
Apps Used
Workflow JSON
{
"id": "0370ece2-af53-4b5c-a97c-681f3898473f",
"name": "Automated n8n Workflow Backups to Bitbucket",
"nodes": 17,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 0370ece2-af53...
About the Author
N8N_Community_Pick
Curator
Hand-picked high quality workflows from the global community.
Statistics
Related Workflows
Discover more workflows you might like
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.
Visualize Your n8n Workflows: Interactive Dashboard with Mermaid.js
Gain unparalleled visibility into your n8n automation landscape. This workflow transforms your n8n instance into a dynamic, interactive dashboard, leveraging Mermaid.js to visualize all your workflows in one accessible place.