{"product_id":"restore-n8n-workflows-from-github-to-any-n8n-instance","title":"Restore n8n Workflows from GitHub to Any n8n Instance","description":"\u003ch3\u003eRestore your n8n workflows from GitHub—any instance, in one click\u003c\/h3\u003e\n\u003cp\u003eThis n8n automation lets you restore one or all \u003cstrong\u003en8n workflows\u003c\/strong\u003e from a \u003cstrong\u003eGitHub\u003c\/strong\u003e repository directly into \u003cem\u003eany\u003c\/em\u003e n8n instance. Perfect for disaster recovery, migrating instances, or bulk re-importing workflows without manually rebuilding them.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRuns manually\u003c\/strong\u003e and asks for your GitHub and target n8n configuration: repository, branch, workflows directory, restore mode (all or single), and the target n8n base URL.\u003c\/li\u003e\n  \u003cli\u003eIf you provide a \u003cstrong\u003especific workflow path\u003c\/strong\u003e, it restores that file. Otherwise, it \u003cstrong\u003elists all JSON workflow files\u003c\/strong\u003e in the configured GitHub directory and filters them based on the selected restore mode.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFetches workflow JSON\u003c\/strong\u003e from GitHub using the GitHub API for each selected workflow file.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCleans exported workflow data\u003c\/strong\u003e by removing IDs and instance-specific metadata and normalizing settings for import.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eChecks the target n8n instance\u003c\/strong\u003e for an existing workflow with the same name via the n8n API.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUpdates or creates workflows\u003c\/strong\u003e: updates the existing workflow when found, or creates a new one when it isn’t.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDisaster recovery\u003c\/strong\u003e: restore workflows after accidental deletion or an environment rollback.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eMigration to a new n8n instance\u003c\/strong\u003e: rehydrate workflows into a fresh deployment.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBulk importing\u003c\/strong\u003e: restore all workflows from a GitHub-exported directory quickly.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSingle workflow recovery\u003c\/strong\u003e: recover one workflow when only a specific file was impacted.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGitHub integration\u003c\/strong\u003e: uses an n8n \u003cstrong\u003eGitHub OAuth2 credential\u003c\/strong\u003e to read workflow JSON files from your repository.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTarget n8n integration\u003c\/strong\u003e: uses an \u003cstrong\u003en8n API credential\u003c\/strong\u003e and the target instance base URL to query\/update\/create workflows.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes involved\u003c\/strong\u003e: \u003ccode\u003eif\u003c\/code\u003e, \u003ccode\u003eset\u003c\/code\u003e, \u003ccode\u003ecode\u003c\/code\u003e, \u003ccode\u003esticky note\u003c\/code\u003e, \u003ccode\u003ehttp request\u003c\/code\u003e, \u003ccode\u003emanual trigger\u003c\/code\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eSEO keywords:\u003c\/strong\u003e restore n8n workflows, GitHub workflow import, n8n disaster recovery, migrate n8n instance, bulk workflow restore.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45945699270835,"sku":"N8N-19098","price":19.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/LPr_QSd0IUr05YBFObFVV_v8PrbMKG.png?v=1788426441","url":"https:\/\/buyflowscripts.com\/products\/restore-n8n-workflows-from-github-to-any-n8n-instance","provider":"N8N Commerce","version":"1.0","type":"link"}