Templates / Backup workflows to GitHub

Backup workflows to GitHub

Needs changes

by Harshil Agrawal ✓ · 9,814 views · created 2021-09-08 · DevOps

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: Function (legacy), Cron. 2 breaking item(s) found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 11 nodes and runs on a schedule (legacy Cron node). Along the way it connects GitHub.

How it runs

Trigger: On a schedule (legacy Cron node).

  1. Get workflows (HTTP Request): calls an HTTP API
  2. transform (Function): runs custom JavaScript (legacy Function node)
  3. Get workflow data (HTTP Request): calls an HTTP API
  4. Merge: merges the data from its input branches
  5. Merge: merges the data from its input branches
  6. Create file (GitHub): work with file
  7. GitHub: edit (file)
  8. Get Files (GitHub): get (file)
  9. Transform (Function): runs custom JavaScript (legacy Function node)
  10. Download Raw Content (HTTP Request): calls an HTTP API

Services it uses

GitHub

Before you upgrade to n8n 3.0

2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • Function (legacy) in Transform, transform: replace with Code node, mode 'Run Once for All Items'.
  • Cron in Daily at 23:59: replace with Schedule Trigger.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Published 2021 — 25% of templates published before 2025 need changes for 3.0. See how template age affects 3.0 readiness →

Removed in 3.0Replace with
Function (legacy)
Transform, transform
Code node, mode 'Run Once for All Items'
Cron
Daily at 23:59
Schedule Trigger

Nodes used (5)

From the author

Note: This workflow uses the internal API which is not official. This workflow might break in the future. The workflow executes every night at 23:59. You can configure a different time bin the Cron node. Configure the GitHub nodes with your username, repo…

Excerpt from Harshil Agrawal's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.