Skip to main content

Automated daily workflow backups to Google Drive with cleanup

Workflow preview

Workflow preview
100%
Automated daily workflow backups to Google Drive with cleanup preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

n8n Workflow Backup System Who's it for This workflow is perfect for n8n users who want to automatically backup all their workflows to Google Drive with zero manual effort. Perfect for teams ...

Best for

  • DevOps automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.n8n, n8n-nodes-base.splitinbatches, n8n-nodes-base.googledrive, n8n-nodes-base.converttofile, n8n-nodes-base.scheduletrigger, n8n-nodes-base.filter

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Jose Bossa.

Original n8n.io source

1.1 Workflow description

Title
Automated daily workflow backups to Google Drive with cleanup
Workflow name
Automated daily workflow backups to Google Drive with cleanup

n8n Workflow Backup System

πŸ‘₯ Who's it for

This workflow is perfect for n8n users who want to automatically backup all their workflows πŸ’Ύ to Google Drive with zero manual effort. Perfect for teams managing multiple workflows or anyone who values data safety! πŸ”’

πŸ€– What it does

It automatically creates daily backups of all your n8n workflows to Google Drive in readable JSON format, organizes them in dated folders, and cleans up old backups to save storage space. Set it and forget it! ✨

βš™οΈ How it works

Spanish Version (EspaΓ±ol) πŸ‡ͺπŸ‡Έ

  1. ⏰ Schedule Trigger – Runs automatically every day at 4:00 AM
  2. πŸ“ Create New Folder – Creates a timestamped backup folder in Google Drive
  3. πŸ”Œ n8n API Connection – Fetches all workflows from your n8n instance
  4. πŸ”„ Loop Over Items – Processes each workflow individually through two paths:
    • Upper Path (Cleanup):
      • πŸ—‚οΈ Get Folders – Retrieves all existing backup folders
      • πŸ” Filter – Excludes the current folder
      • πŸ—‘οΈ Delete Folder – Permanently removes old backups
    • Lower Path (Backup):
      • πŸ“„ Convert to File – Transforms workflow to formatted JSON
      • ☁️ Google Drive – Saves JSON file to backup folder

English Version πŸ‡¬πŸ‡§

Identical functionality with English interface

πŸ“‹ Requirements

  • n8n instance with API access enabled
  • Google Drive account with sufficient storage
  • n8n API credentials configured
  • Google Drive OAuth2 credentials configured

πŸ› οΈ How to set up

  1. Configure n8n API credentials:

    • Format: https://your-instance.n8n.io/api/v1
    • Generate API key from your n8n instance settings
  2. Set up Google Drive credentials:

    • Connect your Google account via OAuth2
    • Grant necessary permissions for folder creation and file management
  3. Configure target folder:

    • Create a parent folder in Google Drive (e.g., "N8N Backups")
    • Copy the folder ID from the URL
    • Update the folderId in "create new folder" nodes
  4. Adjust schedule (optional):

    • Default: 4:00 AM daily
    • Modify triggerAtHour in Schedule Trigger node
  5. Test manually:

    • Use the Manual Trigger to test before scheduling
    • Verify folders are created and files are saved correctly
  6. Activate the workflow βœ…

🎨 How to customize

  • Change backup frequency: Modify Schedule Trigger settings (hourly, weekly, monthly)
  • Keep multiple backup versions: Remove or modify the cleanup path to retain more history
  • Change folder naming: Edit the folder name format in "create new folder" node (default: Workflow Backups [day] [time] [date])
  • Backup to different location: Change the parent folder ID
  • Add notifications: Include email/Slack nodes to get backup completion alerts
  • Filter specific workflows: Add Filter node after n8n node to backup only certain workflows

⚠️ Important Notes

  • Old backups are permanently deleted by default to save space
  • Ensure sufficient Google Drive storage for your workflow size
  • API credentials must have read access to all workflows
  • The workflow processes items sequentially to avoid rate limits

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - n8n1

Type / Role
n8n-nodes-base.n8n - n8n
Config choices
Version 1

Block 5 - Loop Over Items1

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 6 - create new folder1

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 7 - Convert to File1

Type / Role
n8n-nodes-base.convertToFile - convertToFile
Config choices
Version 1.1

Block 8 - Google Drive1

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 9 - Schedule Trigger1

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 10 - Filter1

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 11 - delete folder1

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 12 - Get folders1

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 13 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note9

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - n8n2

Type / Role
n8n-nodes-base.n8n - n8n
Config choices
Version 1

Block 17 - Loop Over Items2

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 18 - create new folder2

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 19 - Convert to File2

Type / Role
n8n-nodes-base.convertToFile - convertToFile
Config choices
Version 1.1

Block 20 - Google Drive2

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 21 - Schedule Trigger2

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 22 - Filter2

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 23 - delete folder2

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 24 - Get folders2

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Showing the first 24 of 32 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Automated daily workflow backups to Google Drive with cleanup
Complexity advanced
Nodes 32
Categories DevOps
Author Jose Bossa
Published 16 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9779/9779.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automated daily workflow backups to Google Drive with cleanup do?

n8n Workflow Backup System Who's it for This workflow is perfect for n8n users who want to automatically backup all their workflows to Google Drive with zero manual effort. Perfect for teams ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps use case.