Templates / Restore n8n workflows from GitHub JSON backups with Data Tables

Restore n8n workflows from GitHub JSON backups with Data Tables

Ready for 3.0

by Alvaro Pérez ✓ · 18 views · created 2026-07-22 · DevOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 17 nodes and runs manually, when you click “Execute workflow”. Along the way it connects GitHub.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. config (Edit Fields (Set)): sets or maps fields
  2. list_repo_files (GitHub): list (file)
  3. get_only_workflows (Filter): keeps only the items that match a condition
  4. github_repo_error (Stop and Error): stops the run with an error
  5. get_restored_workflows (Data table): get
  6. get_not_restored (Code): runs custom JavaScript code
  7. error_geting_restored_worflows (Stop and Error): stops the run with an error
  8. loop_over_items (Loop Over Items (Split in Batches)): loops over the items in batches
  9. truncate_control_table (Data table): delete rows
  10. get_workflow_file (HTTP Request): calls an HTTP API

…plus 5 more steps. See the full node list below.

Services it uses

GitHub

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 (11)

From the author

Quick overview This workflow manually restores n8n workflows from JSON backup files stored in a GitHub repository, recreates them via the n8n API, and tracks progress in an n8n Data Table to avoid reprocessing items during the same recovery run. How it works…

Excerpt from Alvaro Pérez's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.