Backup workflows to git repository

Automated workflow: Backup workflows to git repository. This workflow integrates 8 different services: stickyNote, code, scheduleTrigger, n8n, set. It contains 17 nodes and follows best practices for error handling and security.

Integrations Used (3)

Workflow Structure (11 nodes)
100%
Schedule Trigger
Schedule Trigger
Set
Globals
N8n
n8n
Split In Batches
Loop Over Items
Github
GitHub
If
If Node
Github
Create new file and commit
Code
Code
Stop And Error
Error Handler
If
If1
Github
Update file content and commit
Node Types:
default
transform
logic
code
trigger
Requires credentials

Prerequisites

Required Credentials (2)

Github

Used by: GitHub, Create new file and commit +1 more

Docs

N8n

Used by: n8n

Docs

Complexity

Advanced

Expert level. Custom code, complex logic, many integrations.

Setup time: ~45 min
Score: 75/100
Custom Code
Conditional Logic
Loops
4 Integrations

When to Use This Workflow

Scheduled Operations

Run automated tasks at specific times - daily reports, weekly cleanups, monthly backups.

Set it and forget it - reliable automation that runs on your schedule.

Real-time Response

React instantly when events happen - new orders, form submissions, or API calls.

Zero delay between trigger and action for time-sensitive workflows.

Data Protection

Automatically backup or synchronize important data to prevent loss.

Peace of mind knowing your data is safe and recoverable.

workflow.json
{
  "name": "Backup workflows to git repository",
  "nodes": [
    {
      "id": "b09ae4c6-ad75-4b3b-a78a-4cc2d48b2d24",
      "name": "GitHub",
      "type": "n8n-nodes-base.github",
      "position": [
        -40,
        -20
      ],
      "parameters": {
        "owner": "={{$node[\"Globals\"].json[\"repo\"][\"owner\"]}}",
        "filePath": "={{$node[\"Globals\"].json[\"repo\"][\"path\"]}}{{$json[\"name\"]}}.json",
        "resource": "file",
        "operation": "get",
        "repository": "={{$node[\"Globals\"].json[\"repo\"][\"name\"]}}",
        "asBinaryProperty": false,
        "additionalParameters": {}
      },
...

Workflow Details

Nodes
18
Trigger
Scheduled
Source
community
Added
Sep 29, 2025

Need Help?

Check out the official n8n documentation for detailed guides.

Related Workflows

Manualtrigger Workflow

Automated workflow: Manualtrigger Workflow. This workflow integrates 16 different services: stickyNote, httpRequest, cod...

N8n
Http-request
Github
Schedule
23 nodesScheduled

Manualtrigger Workflow

Automated workflow: Manualtrigger Workflow. This workflow integrates 16 different services: stickyNote, httpRequest, cod...

N8n
Http-request
Github
Schedule
25 nodesScheduled

Manualtrigger Workflow

Automated workflow: Manualtrigger Workflow. This workflow integrates 17 different services: stickyNote, httpRequest, spl...

Executeworkflow
N8n
Http-request
Github
26 nodesEvent

Manualtrigger Workflow

Automated workflow: Manualtrigger Workflow. This workflow integrates 16 different services: stickyNote, httpRequest, cod...

Http-request
Github
Schedule
Executeworkflow
24 nodesScheduled

Stickynote Workflow

Automated workflow: Stickynote Workflow. This workflow integrates 12 different services: stickyNote, filter, itemLists,...

Google-drive
N8n
Schedule
34 nodesScheduled

Set Workflow

Automated workflow: Set Workflow. This workflow integrates 7 different services: stickyNote, code, scheduleTrigger, n8n,...

Schedule
N8n
Google-drive
7 nodesScheduled