Developer & DevOps

Automated scheduled backups of N8N workflows to GitHub

17 nodes 310 131 Scheduled trigger
Download

Workflow Description

Automated workflow that creates regular backups of N8N configurations and stores them in a GitHub repository on a schedule. Processes workflow data in batches, applies conditional logic, and executes custom code for compression and validation before pushing to the repository.

How it works

  1. 1.Execute backup automation on a predefined schedule
  2. 2.Retrieve active workflow configurations from N8N
  3. 3.Process retrieved data in separate batches
  4. 4.Evaluate backup conditions and readiness checks
  5. 5.Execute custom code to prepare and compress backup data
  6. 6.Push backup version to GitHub repository

Use cases

  • Maintain version history and disaster recovery capability for critical workflows
  • Enable quick restoration of workflows after accidental deletion or corruption
  • Track workflow changes and modifications over time

Requirements

  • GitHub repository with push access credentials
  • N8N API authentication token or credentials
  • Appropriate scheduling interval for backup 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 310
Downloads 131

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