WorkflowVault

Ops · n8n template

n8n Backup + Error Alerts: free workflow to back up n8n to GitHub

Self-hosting n8n means you own the backups. This free workflow saves every workflow to a private GitHub repo each night and emails you whenever any workflow fails, so problems never go unnoticed.

How the workflow runs

  1. Nightly scheduleRuns once a night.
  2. n8n APIExports every workflow as JSON.
  3. GitHubCommits changed workflows to a private repo, with history.
  4. Error triggerCatches failed runs in any workflow and emails you the error.

What you get

  • Nightly backup of every workflow, with version history
  • Email with the failed workflow name, node and error
  • Restore any workflow from GitHub in a minute

What you need

  • n8n with the public API enabled (API key)
  • Private GitHub repo and token
  • Gmail or any SMTP email

See the workflow

Top: nightly backup to GitHub. Bottom: an email whenever any workflow fails.
Top: nightly backup to GitHub. Bottom: an email whenever any workflow fails.

Read the full setup guide

Set up in about 15 min

  1. Get the fileDownload the .json workflow and setup guide.
  2. ImportIn n8n, open a new workflow and choose Import from File.
  3. ConnectAdd your own accounts where the sticky notes point.
  4. ActivateRun once to test, then publish. It keeps running on its own.

Questions

Are credentials backed up?

No. Only workflow JSON is saved. Credentials stay inside n8n, which keeps your keys safe.

Does it work on n8n Cloud?

Yes, as long as the n8n API is available on your plan.

More from the vault

RC
Ops

AI Receipt & Invoice Logger

Reads receipts and invoices that arrive by email, pulls out vendor, date and amount with AI and logs them to Google Sheets.

Gmail→AI extract→Sheets
FM
Ops

Form to Sheet + Alert

Saves every form submission to Google Sheets and alerts you by email or WhatsApp the moment it arrives.

Form→Clean up→Sheets→Email
UP
Ops

Website Uptime Monitor

Checks your websites every 5 minutes and emails you the moment one goes down, and again when it is back.

Schedule→Check URLs→Compare→Email