AcademyWorkflowsDevelopment

Backup n8n workflows to GitHub subfolders

Developers and operations teams that keep a copy of their n8n workflows outside the server.

  • Recommendedour rating
  • 4,897views on n8n
Open on n8n.io ↗

Paste it straight onto an n8n canvas with Ctrl+V or Cmd+V.

backup-your-workflows-to-github-in-subfolders.json

Loading the file...

What it does

This n8n template exports all your workflows through the n8n API and saves them to a GitHub repository. For each workflow it checks whether a file already exists, then updates it, creates it or skips it when nothing has changed. A Set node places the files in subfolders based on their tags.

Use cases

  1. 01Keep a backup of workflows in a GitHub repository
  2. 02Sort backed-up workflows into tag-based subfolders
  3. 03Move workflows to another n8n server from the backup

Connects

GitHub · HTTP Request · Code

Questions about
Backup n8n workflows to GitHub subfolders.

What is Backup n8n workflows to GitHub subfolders used for?

Developers and operations teams that keep a copy of their n8n workflows outside the server. This n8n template exports all your workflows through the n8n API and saves them to a GitHub repository. For each workflow it checks whether a file already exists, then updates it, creates it or skips it when nothing has changed. A Set node places the files in subfolders based on their tags.

How do I import Backup n8n workflows to GitHub subfolders into n8n?

Copy the workflow JSON from this page and paste it onto the n8n canvas with Ctrl+V or Cmd+V. Then connect your credentials in each node.

Is Backup n8n workflows to GitHub subfolders safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.