Skip to main content

✨😃Automated workflow backups to Google Drive

Workflow preview

Workflow preview
100%
✨😃Automated workflow backups to Google Drive preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Automated Workflow Backups to Google Drive This workflow automates the process of backing up your n8n workflows to Google Drive daily. It creates timestamped folders, saves workflows as JSON fi...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.splitinbatches, n8n-nodes-base.scheduletrigger, n8n-nodes-base.googledrive, n8n-nodes-base.set, n8n-nodes-base.n8n, n8n-nodes-base.limit, n8n-nodes-base.converttofile

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
✨😃Automated workflow backups to Google Drive
Workflow name
✨😃Automated workflow backups to Google Drive

✨😃 Automated Workflow Backups to Google Drive

This workflow automates the process of backing up your n8n workflows to Google Drive daily. It creates timestamped folders, saves workflows as JSON files, and manages old backups by retaining only the most recent seven days of data. Notifications are sent via Telegram to keep you informed of the backup status.

How It Works

Backup Creation Process 🗂️

  • Triggering Backups: The workflow starts with either a manual trigger or a scheduled trigger that runs daily.
  • Folder Creation: Creates a new folder in Google Drive with a timestamped name (e.g., n8n-Workflow-Backups-YYYY-MM-DD).
  • Workflow Retrieval: Fetches all workflows from your n8n instance.
  • File Conversion: Converts each workflow into a JSON file for storage.
  • File Upload: Saves the JSON files into the newly created Google Drive folder.

Backup Management 🔄

  • Folder Search: Searches for existing backup folders in Google Drive with names matching n8n-Workflow-Backups.
  • Retention Policy: Identifies folders older than seven days using a custom JavaScript function and deletes them permanently to free up space.

Notifications 📲

  • Telegram Alerts: Sends a message via Telegram once the backup process is complete, including the folder name and a link to access it in Google Drive.

Setup Steps

API Configuration 🔑

  1. Google Drive Integration:
    • Set up Google Drive OAuth2 credentials in n8n.
    • Specify the root folder or desired location for backups.
  2. n8n API Access:
    • Configure n8n API credentials to allow fetching workflows.
  3. Telegram Notifications:
    • Add your Telegram bot credentials and chat ID for notification delivery.

Workflow Customization ⚙️

  1. Define the schedule for automatic backups (e.g., daily at midnight).
  2. Adjust the retention period if you need more or fewer days of backups.
  3. Customize the Telegram message format as needed.

Testing & Deployment 🚀

  1. Run the workflow manually to verify folder creation and file uploads.
  2. Check that old folders are deleted correctly after seven days.
  3. Confirm Telegram notifications are sent with accurate details.

Use Case Scenarios

This workflow is perfect for teams or individuals who want to ensure their n8n workflows are securely backed up and organized. It is especially useful for:

  • Protecting against accidental data loss.
  • Automating routine administrative tasks.

By combining automated backups, retention management, and real-time notifications, this workflow ensures your n8n workflows are always safe and accessible!

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 - On clicking 'execute'

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

Block 2 - Loop Over Items

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

Block 3 - Every Day

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

Block 4 - Create Folder with DateTime Stamp

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

Block 5 - Get DateTIme

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - Get Workflows

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

Block 7 - Limit to 200

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

Block 8 - Convert Workflow to JSON File

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

Block 9 - Save JSON File to Google Drive Folder

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

Block 10 - Execute Once

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

Block 11 - Search Folder Names

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

Block 12 - Delete Folders

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

Block 13 - Complete Message

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

Block 14 - Sticky Note

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

Block 15 - Sticky Note1

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

Block 16 - Sticky Note2

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

Block 17 - Find Folders to Delete

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 18 - Sticky Note3

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

Block 19 - Sticky Note4

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

Block 20 - Sticky Note5

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

Block 21 - Sticky Note6

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

Block 22 - Sticky Note7

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

3. Summary Table

Workflow ✨😃Automated workflow backups to Google Drive
Complexity advanced
Nodes 22
Categories DevOps
Author Joseph LePage
Published 23 Feb 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2983/2983.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 workflow backups to Google Drive do?

Automated Workflow Backups to Google Drive This workflow automates the process of backing up your n8n workflows to Google Drive daily. It creates timestamped folders, saves workflows as JSON fi...

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.