Templates / Back up self-hosted workflows to Google Drive daily with change detection

Back up self-hosted workflows to Google Drive daily with change detection

Ready for 3.0

by Chandan Singh ✓ · 483 views · created 2025-12-28 · 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 18 nodes and runs on a schedule (every day at 01:00). Along the way it connects Google Drive.

How it runs

Trigger: On a schedule (every day at 01:00).

  1. Set Configuration (Edit Fields (Set)): sets or maps fields
  2. Config Validation (Code): runs custom JavaScript code
  3. Get All n8n Workflows (HTTP Request): calls an HTTP API
  4. Split Workflows (Split Out): splits a list into separate items
  5. Process Each Workflow (Loop Over Items (Split in Batches)): loops over the items in batches
  6. Backup scope all? (If): checks a condition and branches into true / false
  7. Prepare Workflow (Code): runs custom JavaScript code
  8. Backup scope active? (If): checks a condition and branches into true / false
  9. Generate Workflow Hash (Crypto): hashes or encrypts values
  10. If: checks a condition and branches into true / false

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

Services it uses

Google Drive

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

From the author

This workflow creates a daily, automated backup of all workflows in a self-hosted n8n instance and stores them in Google Drive. Instead of exporting every workflow on every run, it uses content hashing to detect meaningful changes and only updates backups…

Excerpt from Chandan Singh'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.