Templates / Automated daily workflow backup to GitHub

Automated daily workflow backup to GitHub

Ready for 3.0

by Hugo · 11,049 views · created 2025-05-15 · DevOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 10 nodes and runs on a schedule (every day). Along the way it connects GitHub.

How it runs

Trigger: On a schedule (every day).

  1. List files from repo (GitHub): list (file)
  2. Aggregate: combines items into one
  3. Retrieve workflows (n8n): uses n8n
  4. Json file (Convert to File): converts data to a file (to json)
  5. To base (Extract from File): extracts data from a file (binary to propery)
  6. Commit date & file name (Edit Fields (Set)): sets 2 fields: commitDate, fileName
  7. Check if file exists (If): checks a condition and branches into true / false
  8. Update file (GitHub): edit (file)
  9. Upload file (GitHub): work with file

Services it uses

GitHub

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

This workflow provides a robust solution for automatically backing up all your n8n workflows to a designated GitHub repository on a daily basis. By leveraging the n8n API and GitHub API, it ensures your workflows are version-controlled and securely stored,…

Excerpt from Hugo'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.