workflows.fit
Back to n8n workflows
n8n templateFreeBy Marcial Ambriz

Automated n8n workflow backup to GitHub with deletion tracking

Remixed [Backup your workflows to GitHub](https://n8n.io/workflows/2652-backup-your-workflows-to-github/) from [Solomon's](https://n8n.io/creators/solomon/) work. Check out his templates. How it works This workflow wi...

DevelopmentCore NodesManual TriggerSetHttp RequestIf
Loading interactive preview...

Template notes

Remixed [Backup your workflows to GitHub](https://n8n.io/workflows/2652-backup-your-workflows-to-github/) from [Solomon's](https://n8n.io/creators/solomon/) work. Check out his templates.

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.

In addition, it also checks if any workflows have been deleted from n8n. If a workflow no longer exists in n8n, the corresponding file will be removed from the repository to keep everything in sync.

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