Developer & DevOps

Backup workflow to a repository

17 nodes 210 113 Scheduled trigger
Download

Workflow Description

A scheduled workflow that automatically backs up n8n workflow configurations to a GitHub repository, processing data in batches with conditional logic to ensure reliable backup operations.

How it works

  1. 1.Execute workflow on a defined schedule
  2. 2.Retrieve workflow data from n8n and partition into batches
  3. 3.Apply conditional rules and custom code logic to batch data
  4. 4.Commit and push backup to GitHub repository

Use cases

  • Protect workflow configurations against unexpected loss or system failures
  • Maintain version history of workflow changes and updates
  • Enable rapid recovery and restoration during emergencies

Requirements

  • Active GitHub account with write permissions to target repository
  • Secure API authentication for both n8n and GitHub services
  • Scheduled trigger configuration with appropriate frequency

Service Value

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

Apps Used

GitHub N8N Split In Batches

Details

Trigger Scheduled trigger
Nodes 17
Apps 3
Views 210
Downloads 113

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

/

GitHub

Github

#1

Globals

Set

#2

n8n

N8N

#3

Loop Over Items

Split In Batches

#4

If

If

#5

If1

If

#6

Code

Code

#7

Create new file and commit

Github

#8

Update file content and commit

Github

#9

Schedule Trigger

Schedule Trigger

#10

Sticky Note

Sticky Note

#11

Sticky Note1

Sticky Note

#12

Sticky Note2

Sticky Note

#13

Sticky Note3

Sticky Note

#14

Sticky Note4

Sticky Note

#15

Sticky Note5

Sticky Note

#16

Sticky Note6

Sticky Note

#17