Back up your n8n workflows to github

★ 6.6 · n8n · complex · 26 nodes

Back up your n8n workflows to GitHub is an n8n automation template that automatically exports all workflows from your n8n instance and commits them as JSON files to a GitHub repository. Reach for it when you're worried about losing configured automations after a server crash or update, when you need a change history with the ability to roll back, or when your team wants to store automations as code alongside the rest of the project. Trigger: webhook. Integrations: GitHub, Slack. The template fires on a webhook trigger, fetches all workflows via the n8n API, commits their JSON representations to the specified GitHub repository, and optionally sends a Slack notification. The direction is outbound — exporting and persisting workflows — not importing or restoring from backup. Works for teams and solo developers on self-hosted or cloud n8n with GitHub repository access and the relevant credentials configured in n8n. Not suitable if workflows contain secrets embedded directly in nodes, as those will end up in the repository.