Automated n8n Workflow Backup to GitHub

Automatically backs up your n8n workflows to a GitHub repository every night using the internal n8n API, ensuring version control and data safety.

n8n
Automated n8n Workflow Backup to GitHub

This workflow automates the nightly backup of all n8n workflows from your local instance to a specified GitHub repository. It triggers via a Cron node at 23:59 (configurable), uses HTTP Request nodes to query the n8n internal API (localhost:5678) with Basic Auth credentials, fetches workflow data as JSON, transforms it if needed, and then creates or edits files in GitHub using the GitHub node.

Key benefits include disaster recovery, version history tracking via Git commits, and easy sharing or migration of workflows. Each backup file is named after the workflow with a timestamped commit message like '[N8N Backup] Workflow Name (date)'. Note: Relies on unofficial internal API, so monitor for n8n updates that may break compatibility.

Ideal use cases: Self-hosted n8n users needing reliable backups without manual exports; teams collaborating on workflows via GitHub; or anyone wanting automated versioning to prevent data loss from instance failures. Setup requires GitHub credentials, n8n instance auth, and repo details—quick to configure for ongoing protection.

$14.99
Last updated October 17, 2026
30-day money-back guarantee
Instant download
Lifetime updates included

New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.

Secure checkout powered by Stripe

Support

How to import this workflow into n8n

  1. 1Purchase or download the workflow to get the n8n workflow JSON file.
  2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
  3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
  4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

Related Communication workflows

More from Vera Petrova

Need this deployed? We'll set it up for you.

Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.