Skip to content
FlowHubFluxonLab
C
GitHubfree

Backup workflows to git repository on Github

by Shashikanthadapted from n8n official workflow galleryUpdated Aug 2026
RequiresCCodeGitHubGitHub
Share Post Share
GitHubSeGlobalsN8n8nSILoop Over ItemsIfIfIfIf1CoCodeCreate new file and commitCreate new file…Update file content and commitUpdate file con…ScSchedule Trigger123456789101112
1/5
STEPS · 12
Runs on a schedule

Source code, I maintain this worflow here. Usage Guide This workflow backs up all workflows as JSON files named in the [workflow_name].json format. Steps Create GitHub Repository Skip this step if using an existing repository. Add GitHub Credentials In Credentials, add the GitHub credential for the repository owner. Download and Import Workflow Import this workflow into n8n. Set Global Values In the Globals node, set the following: repo.owner: GitHub username of the repository owner. repo.name: Name of the repository for backups. repo.path: Path to the folder within the repository where workflows will be saved. Configure GitHub Nodes Edit each GitHub node in the workflow to use the added credentials. Workflow Logic Each workflow run handles files based on their status: New Workflow If a workflow is new, create a new file in the repository. Unchanged Workflow If the workflow is unchanged, skip to the next item. Changed Workflow If a workflow has changes, update the corresponding file in the repository. Current Limitations / Needs work Name Change of Workflows If a workflow is renamed or deleted in n8n, the old file remains in the repository.

Tags

n8nreference-onlygithub
Connects
CCodegithubGitHub
CategoryGitHub
Triggermanual
Complexitycomplex
Nodes10
AddedNov 6, 2024

Related workflows

See all GitHub
CgithubW
free

Backup Squarespace code Injections to Github

This workflow backup Squarespace website header and footer injections into Github How It Works The Squarespace injections are fetched when an URL is placed Setup Instructions First, edit HTTP Request's URL to put your Squarespace site URL there Next, to configure the Github, update the Globals node with the following values: repo.owner – Your GitHub username repo.name – The name of your GitHub repository storing the workflows repo.path – The folder path within the repository where workflows are stored For example, if your GitHub username is john-doe, your repository is named n8n-backups, and injections are stored in a squarespace-backup/ folder, you would set: repo.owner → john-doe repo.name → n8n-backups repo.path → squarespace-backup/ Each site's injections will be added into seperate folder Required Credentials GitHub API – Access to your repository Who Is This For? This template is made for Squarespace users who want to backup their header and footer injections at interval to or on demand Check out my other templates: 👉 My n8n Templates

by bangank36
CgithubW
free

Triage and deduplicate GitHub issues with Claude Sonnet 4.5

Quick overview Detect and merge duplicate GitHub issues automatically using Claude AI. This n8n automation triggers on new GitHub issues, checks them against open issues for duplicates, merges duplicate reports into the original, and applies AI-generated labels or requests missing reproduction steps. How it works Triggers automatically when a new GitHub issue is opened, kicking off AI-powered issue triage. Fetches up to 30 currently open GitHub issues from the same repository as duplicate-detection candidates. Sends the new issue and the candidate list to Claude AI, which assigns labels, detects duplicate issues, and drafts a reproduction-request comment when needed. If Claude AI flags the issue as a duplicate, the automation labels the new issue, links it to the original GitHub issue, and comments with a reference back to it. For duplicate issues, the workflow also updates the original issue's body with a tracked "reported by N users" summary and posts a comment merging in the new report's details — keeping duplicate GitHub issues consolidated instead of scattered across separate threads. If the issue isn't a duplicate, Claude AI applies the right labels and, when reproduction ste

by Cullen Brown
Cgithubtelegram
free

Back up all workflows to GitHub with daily schedule and Telegram /backup

Quick overview This workflow backs up all workflows from your n8n instance to a GitHub repository every day at 03:00, and also supports an on-demand Telegram /backup command, then sends a Telegram message with the backup result and commit link. How it works Runs daily at 03:00 and also triggers when a Telegram message is received. Checks that the incoming Telegram message starts with /backup before proceeding with the manual run. Fetches all workflows from the n8n instance via the n8n API. Builds a JSON backup file containing the workflows and sets the GitHub file path as backups/YYYY-MM-DD/workflows.json. Checks in GitHub whether the backup file already exists and either updates it or creates it with a dated commit message. Sends a Telegram notification to the triggering chat (or a predefined admin chat for scheduled runs) including the workflow count and GitHub commit URL. Setup Create and select an n8n API credential that can read workflows from your n8n instance. Add a GitHub credential with access to the target repository and set the owner/repo values to your backup repo. Add a Telegram bot credential, enable the Telegram trigger webhook, and use the bot to send /backup from t

by Business Atlas