Developer & DevOps

Backup workflow n8n to

9 nodes 209 122 Scheduled trigger
Download

Workflow Description

Scheduled automation template that creates periodic backups of n8n workflows by extracting all available workflows, processing them in batches, and sending them to a secure storage destination via rate-controlled HTTP requests.

How it works

  1. 1.Trigger the backup process at scheduled intervals using a cron expression
  2. 2.Retrieve the complete list of workflows from your n8n instance via API
  3. 3.Divide workflows into manageable batches to prevent timeouts
  4. 4.Send each batch to the backup destination with conditional validation
  5. 5.Apply timed delays between requests to avoid overwhelming the target service
  6. 6.Store backup data with versioning metadata for recovery purposes

Use cases

  • Regular backup of critical workflows before applying system updates or migrations
  • Automated disaster recovery mechanism to prevent workflow loss due to data corruption
  • Audit trail maintenance by capturing workflow states and configurations periodically

Requirements

  • Valid API key or authentication token for your n8n instance
  • HTTP endpoint URL configured to receive and store backup payloads
  • Read permissions on all workflows to be included in the backup process

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

N8N Split In Batches

Details

Trigger Scheduled trigger
Nodes 9
Apps 2
Views 209
Downloads 122

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (9)

Calculate Wait Time

Code

#1

Run Daily at 2 AM

Schedule Trigger

#2

Get All Workflows

N8N

#3

Loop Workflows

Split In Batches

#4

Get Existing Worfklow from Bitbucket

HTTP Request

#5

New or Changed?

If

#6

Upload Workflow to Bitbucket

HTTP Request

#7

Wait to Avoid Rate Limiting

Wait

#8

Set Bitbucket Workspace & Repository

Set

#9