Library / Code, Git & Developer Tools
Code, Git & Developer Tools
Restore n8n Workflows from GitHub, Skipping Existing Ones
When you run it, it reads backed-up workflows from GitHub, checks which names already exist in n8n and imports the missing ones through the n8n API.
What it does
## Workflow - Restore Backups This workflow will restore backed-up workflows from Github. It is launch by testing the workflow ### Setup Open Globals and update the values below repo.owner: This is your Github username repo.name: This is the name of your repository repo.path: This is the folder where your workflows are saved, within the repository. If your username was n8n-io and your repository was called n8n-backups and you wanted the workflows to go into a workflows folder you would set: repo.owner - n8n-io repo.name - n8n-backups repo.path - workflows
The steps
- On clicking 'execute'
- Globals
- Workflow name already exists
- If workflow already exists
- Set n8n existing workflows names
- GitHub - get all files
- n8n - get all workflows
- GitHub - get each file
- Set name and content
- n8n - create workflow
- Merge globals and files
- Merge Github and n8n workflows - Keep only non existing work
Similar automations
Code, Git & Developer ToolsRestore n8n Workflows from GitHub13 stepsCode, Git & Developer ToolsRestore n8n Workflows from Merged GitHub Pull Requests13 stepsCode, Git & Developer ToolsRestore n8n Workflows from GitHub Backups7 stepsCode, Git & Developer ToolsRestore n8n Workflows from GitHub18 steps