Backup n8n Workflows to GitHub
detail.loadingPreview
Automates backing up your n8n workflow definitions to a GitHub repository.
About This Workflow
This workflow periodically backs up the definitions of your n8n workflows to a specified GitHub repository. It retrieves workflow information, downloads their JSON definitions, and then commits these definitions as individual JSON files to GitHub. This ensures a version-controlled backup of your automation logic.
Key Features
- Scheduled Execution: Triggers automatically at a set time daily.
- n8n API Integration: Connects to the n8n REST API to fetch workflow data.
- GitHub Integration: Uses the GitHub node to commit workflow JSON files.
- Dynamic File Naming: Creates unique files in GitHub based on workflow names.
- Version Control: Leverages GitHub's versioning for rollback capabilities.
How To Use
- Configure Cron Trigger: Set the
Daily at 23:59node to your desired backup schedule. - Configure n8n Credentials: Set up the
n8n instance authHTTP Basic Auth credentials to access your n8n API. - Configure GitHub Credentials: Set up the
GitHub@harshil1712andGitHub Tokencredentials for your GitHub account and repository. - Set GitHub Repository Details: In the
GitHub EditandCreate filenodes, replaceYOUR_USERNAMEandREPO_NAMEwith your GitHub username and repository name. - Map Workflow Data: The
transformnode prepares the workflow list, andGet workflow datafetches individual workflow details. TheDownload Raw Contentnode retrieves the raw JSON. TheMergeandMerge1nodes are used to combine and prepare the data for committing to GitHub. Ensure thefilePathandfileContentin the GitHub nodes correctly reference the workflow data.
Apps Used
Workflow JSON
{
"id": "245de572-78c9-49f6-9f08-e3ed2d3ed8ec",
"name": "Backup n8n Workflows to GitHub",
"nodes": 5,
"category": "Utilities",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 245de572-78c9...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Related Workflows
Discover more workflows you might like
Check Website Availability and Extract Metadata
This workflow checks if a given URL is available using Peekalink and then extracts its metadata. It branches based on availability.
AI-Powered n8n Workflow Credential Search
Query your n8n workflow credentials using an AI agent and a local SQLite database.