AcademyWorkflowsDevelopment

Back up n8n workflows to GitHub

Automation and engineering teams that keep n8n workflows under version control and want a copy of each one in GitHub.

  • Recommendedour rating
  • 5,778views on n8n
Open on n8n.io ↗

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

backup-workflows-to-git-repository-on-github.json

Loading the file...

What it does

This n8n workflow saves each of your workflows as a JSON file in a GitHub repository. On every run it creates files for new workflows, updates files for changed ones and skips unchanged ones. Renamed or deleted workflows are not yet removed from the repository, so older files may remain.

Use cases

  1. 01Keep a dated history of workflow changes in git
  2. 02Restore a workflow from its JSON file
  3. 03Review workflow changes as normal diffs on GitHub

Connects

GitHub · Code

Questions about
Back up n8n workflows to GitHub.

What is Back up n8n workflows to GitHub used for?

Automation and engineering teams that keep n8n workflows under version control and want a copy of each one in GitHub. This n8n workflow saves each of your workflows as a JSON file in a GitHub repository. On every run it creates files for new workflows, updates files for changed ones and skips unchanged ones. Renamed or deleted workflows are not yet removed from the repository, so older files may remain.

How do I import Back up n8n workflows to GitHub 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 Back up n8n workflows to GitHub 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.