Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

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

  1. On clicking 'execute'
  2. Globals
  3. Workflow name already exists
  4. If workflow already exists
  5. Set n8n existing workflows names
  6. GitHub - get all files
  7. n8n - get all workflows
  8. GitHub - get each file
  9. Set name and content
  10. n8n - create workflow
  11. Merge globals and files
  12. Merge Github and n8n workflows - Keep only non existing work

Similar automations