Backup workflows to git repository on Github
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.
Deleted Workflows
Deleted workflows in n8n are not removed from the repository.
Related Templates
USDT And TRC20 Wallet Tracker API Workflow for n8n
Overview This n8n workflow is specifically designed to monitor USDT TRC20 transactions within a specified wallet. It u...
Automate Daily Keyword Research with Google Sheets, Suggest API & Custom Search
Who's it for This workflow is perfect for SEO specialists, marketers, bloggers, and content creators who want to automa...
Bulk Automated Google Drive Files Sharing and Direct Download Link Generation
This N8N workflow automates the process of sharing files from Google Drive. It includes OAuth2 authentication, batch pro...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments