Templates / Automated workflow backup to Google Drive with smart cleanup

Automated workflow backup to Google Drive with smart cleanup

Ready for 3.0

by Luca Olovrap · 3,614 views · created 2025-08-17 · DevOps, Multimodal AI

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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 13 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Google Drive.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. CONFIG - Set your variables here (Edit Fields (Set)): sets 2 fields: parentFolderId, backupsToKeep
  2. Create new backup folder (Google Drive): work with folder
  3. Get all n8n workflows (n8n): uses n8n
  4. Loop over each workflow (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Start cleanup (run once) (Edit Fields (Set)): sets or maps fields
  6. Convert workflow to file (Convert to File): converts data to a file (to json)
  7. Search files and folders (Google Drive): work with file folder
  8. Upload workflow to Google Drive (Google Drive): uses Google Drive
  9. Sort and isolate old folders (Code): runs custom JavaScript code
  10. Loop over folders to delete (Loop Over Items (Split in Batches)): loops over the items in batches

…plus 1 more step. 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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (8)

From the author

How it works This workflow provides a complete, automated backup solution for your n8n instance, running on a daily schedule to ensure your automations are always safe. Automatic cleanup: It first connects to your Google Drive to find and delete old backup…

Excerpt from Luca Olovrap'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.