AcademyWorkflowsOperations

Git backup of workflows and credentials

Teams that self-host n8n and want a versioned backup of their workflows and credentials.

  • Recommendedour rating
  • 13,433views on n8n
Open on n8n.io ↗

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

git-backup-of-workflows-and-credentials.json

Loading the file...

What it does

An n8n workflow that exports your workflows and credentials with the n8n export command and commits them to a git repository. It uses git diff, so a commit is only created when something has changed. You can run it as often as you like.

Use cases

  1. 01Keep a git history of every n8n workflow
  2. 02Back up credentials to a private repository
  3. 03Restore a workflow from an earlier commit

Questions about
Git backup of workflows and credentials.

What is Git backup of workflows and credentials used for?

Teams that self-host n8n and want a versioned backup of their workflows and credentials. An n8n workflow that exports your workflows and credentials with the n8n export command and commits them to a git repository. It uses git diff, so a commit is only created when something has changed. You can run it as often as you like.

How do I import Git backup of workflows and credentials 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 Git backup of workflows and credentials 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.