Developer & DevOps

Automated Workflow Backups to Repository on Schedule

20 nodes 206 123 Scheduled trigger
Download

Workflow Description

Scheduled automation that exports workflow configurations from n8n to an external repository on a regular basis, ensuring comprehensive backups and version tracking for all automation setups and configurations.

How it works

  1. 1.Trigger automation execution based on predefined schedule
  2. 2.Retrieve workflow data from n8n API endpoint
  3. 3.Process exported data in batches for optimal performance
  4. 4.Apply conditional logic to validate data integrity
  5. 5.Push backup payload to external repository via HTTP request

Use cases

  • Protect workflow configurations against accidental loss or corruption
  • Maintain complete audit trail of all workflow modifications
  • Enable rapid rollback to previous workflow versions when needed
  • Create compliant, searchable backup history for governance requirements

Requirements

  • Active API connection to n8n instance with valid credentials
  • External repository supporting HTTP POST (GitHub, GitLab, Bitbucket, etc.)
  • Properly configured API tokens and authentication headers
  • Read access to all workflows intended for backup

Service Value

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

Apps Used

N8N Split In Batches

Details

Trigger Scheduled trigger
Nodes 20
Apps 2
Views 206
Downloads 123

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 (20)

/

Globals

Set

#1

n8n

N8N

#2

Schedule Trigger

Schedule Trigger

#3

Sticky Note

Sticky Note

#4

Sticky Note1

Sticky Note

#5

Sticky Note2

Sticky Note

#6

Sticky Note3

Sticky Note

#7

Sticky Note5

Sticky Note

#8

Sticky Note6

Sticky Note

#9

SetDataUpdateNode

Set

#10

SetDataCreateNode

Set

#11

Base64EncodeUpdate

Code

#12

Base64EncodeCreate

Code

#13

Exist

If

#14

Changed

If

#15

PutGitea

HTTP Request

#16

GetGitea

HTTP Request

#17

PostGitea

HTTP Request

#18

ForEach

Split In Batches

#19

Sticky Note4

Sticky Note

#20