Developer & DevOps

Automated periodic backups of n8n workflows

9 nodes 290 152 Scheduled trigger
Download

Workflow Description

Automation that periodically backs up all defined workflows from your n8n instance on a scheduled basis, processes data in batches, and transmits them via HTTP requests with error handling and delays between operations.

How it works

  1. 1.Trigger automation based on a predefined schedule
  2. 2.Retrieve complete list of workflows from n8n API endpoint
  3. 3.Split retrieved workflow data into manageable batches
  4. 4.Send each batch to backup server via HTTP request
  5. 5.Validate success and handle failures with conditional logic
  6. 6.Insert delays between requests to prevent server overload

Use cases

  • Automatically schedule regular backups of n8n workflows without manual intervention
  • Restore workflows quickly in case of accidental deletion or data loss
  • Maintain audit trail and version history of all workflow changes

Requirements

  • Valid API key with access to n8n instance
  • Backup destination server or service accessible via HTTP
  • Configured schedule for automated execution

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 290
Downloads 152

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