Backup your workflows to GitHub -- in (subfolders)

Nodes

e6ae7503-2949-4cf6-8d11-9f146c34f7233b9f1b78-6b80-4575-aa6c-966987000389767a4dc9-a96d-4faf-8994-3ca7563046762e3e39e3-0e17-4fae-9ac5-9ee31f9711ed+7

Categories

Created by

NaNazmy

Last edited 9 days ago

Based on Jonathan & Solomon work.

The only addition I've made is a Set node. This node organizes workflows into subfolders within the GitHub repository based on their respective tags.

How it works

This workflow will backup your workflows to GitHub. It uses the n8n API node to export all workflows.

It then loops over the data, checks in GitHub to see if a file exists that uses the credential's ID. Once checked it will:

  • update the file on GitHub if it exists;
  • create a new file if it doesn't exist;
  • ignore if it's the same.

Who is this for?

People wanting to backup their workflows outside the server for safety purposes or to migrate to another server.

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!