AutomationMart
Home/Browse/Automatic workflow & credentials backup to GitHub with change detection
n8n

Automatic workflow & credentials backup to GitHub with change detection

n8nn8n21 modulesv1.0
GitHub

This n8n workflow template uses community nodes and is only compatible with the self-hosted version of n8n. Title: n8n Credentials and Workflows Backup on Change Detection Purpose: Never lose track of your n8n changes again! This workflow smartly backs up all your workflows and credentials, automatically detects any changes using hash comparison, and pushes updates to GitHub—but only when something has actually changed. Set your own interval and stop cluttering your repo with redundant commits.

At a glance

Automatic workflow & credentials backup to GitHub with change detection is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects GitHub. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
GitHub
Modules
21
Price
Free
Version
v1.0
Automatic workflow & credentials backup to GitHub with change detection workflow diagram

About this workflow

This n8n workflow template uses community nodes and is only compatible with the self-hosted version of n8n. Title: n8n Credentials and Workflows Backup on Change Detection Purpose: Never lose track of your n8n changes again! This workflow smartly backs up all your workflows and credentials, automatically detects any changes using hash comparison, and pushes updates to GitHub—but only when something has actually changed. Set your own interval and stop cluttering your repo with redundant commits. Walkthrough Video on YouTube --- Trigger: Schedule Trigger: Executes the entire process at a user-defined interval. No need to worry about traceability or managing countless backups, as the workflow only commits changes when a difference is detected. --- Workflow Backup Process: 1. Set Workflow Path: Defines the local backup file path for workflows. 2. Get Old Workflow Hash: Executes a helper workflow to retrieve the previous hash. 3. Execute Workflow Backup: Runs n8n export:workflow to export all workflows to the defined file path. 4. Get New Workflow Hash: Executes a helper workflow to generate the new hash from the exported file. 5. Compare Hashes (If Workflow Updated): Checks if the new hash differs from the old one. 6. If Updated: Read Workflow Data → Extract Text → Push to GitHub: Reads, extracts, and commits the updated workflow JSON to GitHub under a timestamped filename. --- Credential Backup Process: 1. Set Credential Path: Defines the local backup file path for credentials. 2. Get Old Credential Hash: Executes a helper workflow to retrieve the previous hash. 3. Execute Credential Backup: Runs n8n export:credentials to export all credentials. 4. Get New Credential Hash: Executes a helper workflow to generate the new hash from the exported file. 5. Compare Hashes (If Credential Updated): Checks for changes. 6. If Updated: Read Credential Data → Extract Text → Push to GitHub: Commits the new credentials JSON to GitHub if changes are found. --- Hash Generator (Helper Flow): Used in both workflow and credential backup paths: Read File → Extract Text → Hash Data Outputs SHA-256 hash used for comparison --- GitHub Integration: Commits are created with ISO timestamp in the filename and message. Repository: File paths: backups/WorkFlow Backup -timestamp-.json and backups/Credential Backup -timestamp-.json --- Change Detection Logic: Only commits files when hash changes are detected (i.e., actual content change). Avoids unnecessary GitHub commits and storage use. Error Handling: GitHub nodes are set to continue workflow execution on error, avoiding full process interruption.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Automatically Classify Zoho Desk Support Tickets using Gemini AI

Automatically Classify Support Tickets in Zoho Desk with AI with Gemini Transform your customer support workflow with intelligent ticket classification. This automation leverages AI to automatically categorize incoming support tickets in Zoho Desk, reducing manual work and ensuring faster ticket routing to the right teams. How It Works 1. Fetches all tickets from Zoho Desk with pagination support 2. Filters unclassified tickets (where classification field is null) 3. Retrieves complete ticket th

Free

LinkedIn job finder automation using Bright Data API & Google Sheets

LinkedIn Job Finder Automation using Bright Data API & Google Sheets ======================================================================= A comprehensive n8n automation that searches LinkedIn job postings using Bright Data’s API and automatically organizes results in Google Sheets for efficient job hunting and recruitment workflows. 📋 Overview ----------- This workflow provides an automated LinkedIn job search solution that collects job postings based on your search criteria and organize

Free

Monitor GitHub repo access and push events with GitHub and Slack alerts

Monitor GitHub Repositories for Unauthorized Actions How it works: This workflow monitors GitHub for high-risk activities to ensure that only authorized users can modify the repository. It periodically polls GitHub for events such as PushEvent, MemberEvent, and PublicEvent. For each event, the workflow extracts the username of actor and looks it up in the itwhitelist data table to determine the user’s role. A Switch node then routes the event to the appropriate validation logic. • Member & Publi

Free

AI agent: Find the right LinkedIn profiles in seconds

Automate LinkedIn Prospecting with AI Agent and Get Results Straight to Google Sheets! A practical AI-powered workflow that helps you find relevant LinkedIn profiles using natural language queries and saves the results automatically to Google Sheets. 🎯 What It Actually Does - Accepts natural language requests (e.g., "Find marketing managers in Paris") - Uses AI to extract search parameters: - Job titles - Industry - Location - Searches for matching LinkedIn profiles - Saves profile URLs and t

Free

Create Trello cards from new GitHub issues

Every time a new issue is created in GitHub, Make will automatically create a new card in Trello.

Free

Post new GitHub issues to Mattermost

Every time a GitHub issue is created, Make will automatically post a Mattermost message.

Free

Automatically create JIRA issues from Outlook email support requests

This n8n template watches an outlook shared inbox for support messages and creates an equivalent issue item in JIRA. How it works A scheduled trigger fetches recent Outlook messages from an shared inbox which collects support requests. These support requests are filtered to ensure they are only processed once and their HTML body is converted to markdown for easier parsing. Each support request is then triaged via an AI Agent which adds appropriate labels, assesses priority and summarises a ti

Free

Bidirectional GitHub workflow sync & version control for n8n workflows

Who is this for? This template is ideal for n8n administrators, automation engineers, and DevOps teams who want to maintain bidirectional synchronization between their n8n workflows and GitHub repositories. It helps teams keep their workflow backups up-to-date and ensures consistency between their n8n instance and version control system. What problem is this workflow solving? Managing workflow versions across n8n and GitHub can become complex when changes happen in both places. This workflow sol

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free