Recover your n8n instance from a GitHub repo in minutes. Use this setup to pull workflow backups from a folder and rebuild them without manual steps. It suits teams that version control n8n and need fast restore after changes or outages.
The run starts on a manual click. A Globals node stores the repo owner, repository name, and folder path. An HTTP Request lists files in that path using the GitHub API. The flow then splits the list, fetches each file with the GitHub node, converts the JSON content to data, and sends it to the n8n API to create workflows. This sequence replaces copy and paste and keeps your instance aligned with the repo.
Set the repo values in the Globals node, connect your GitHub credential, and connect your n8n API key. Keep each backup as a valid n8n JSON file in the chosen folder. Expect restore time to drop from hours to minutes, which helps with disaster recovery, staging to production sync, and setting up new environments fast.