Automatic workflow & credentials backup to GitHub with change detection
Ready for 3.0What this workflow does
This workflow has 21 nodes and runs when another workflow calls it (plus 1 other trigger). Along the way it connects GitHub.
How it runs
Trigger: When another workflow calls it (plus 1 other trigger).
- Read File (Read/Write Files from Disk): reads a file from disk
- Set Workflow Path (Edit Fields (Set)): sets 1 field: filePath
- Set Credential Path (Edit Fields (Set)): sets 1 field: filePath
- Extract Data (Extract from File): extracts data from a file (text)
- Get Old Workflow Hash (Execute Sub-workflow): calls another n8n workflow
- Get Old Credential Hash (Execute Sub-workflow): calls another n8n workflow
- Hash Data (Crypto): hashes or encrypts values
- Execute Workflow Backup (Execute Command): runs a shell command on the n8n host
- Execute Credential Backup (Execute Command): runs a shell command on the n8n host
- Get New Workflow Hash (Execute Sub-workflow): calls another n8n workflow
…plus 9 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Read/Write Files from Disk
n8n-nodes-base.readWriteFile - Edit Fields (Set)
n8n-nodes-base.set - Execute Command
n8n-nodes-base.executeCommand - Extract from File
n8n-nodes-base.extractFromFile - Crypto
n8n-nodes-base.crypto - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - GitHub
n8n-nodes-base.github - If
n8n-nodes-base.if
From the author
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…