Back up workflows from multiple n8n instances to Google Drive

Back up n8n workflows to Google Drive automatically This workflow provides a robust solution for backing up your n8n workflows to Google Drive. It is designed to handle backups for multiple n8n instances centrally and leverages Google Drive's native file versioning to keep your history clean. šŸš€

✨ Key Features šŸ”„ Smart Version Control: Instead of creating a new file for every backup, this workflow checks if the file exists and updates it. This utilizes Google Drive's built-in "Manage Versions" feature, allowing you to rollback changes without cluttering your folder.

šŸŒ Multi-Instance Support: Easily backup workflows from multiple n8n servers (e.g., Development, Production) in one go.

⚔ Efficiency: Filters out inactive or archived workflows to save resources.

🧩 Self-Contained Logic: Uses a recursive design to process workflows efficiently.

āš™ļø How It Works The workflow operates in two main stages:

Fetch & Dispatch:

Run daily: The workflow triggers on a schedule.

Fetch workflows: It connects to your configured n8n instances via the n8n Public API to retrieve all active workflows.

It then batches the data and configures the target folders for each host.

Core Backup Logic:

Process backup recursively: The workflow calls itself to process the list.

Drive Comparison: It lists files in the target Google Drive folder and compares them with the n8n workflows.

Smart Sync:

šŸ†• New: If the workflow doesn't exist on Drive, it uploads a new file.

ā™»ļø Update: If the workflow exists but has been modified, it updates the existing file (preserving the file ID and history).

šŸ“ Setup Instructions šŸ”‘ Credentials Set up Google Drive OAuth2 API credentials.

Set up n8n API credentials for each instance you want to backup.

šŸ“‚ Configure Folder IDs Create a folder in Google Drive for your backups and copy the Folder ID from the URL.

Open the nodes named Config Host 1 (and Config Host 2, etc.).

Replace the value for targetFloderId with your actual Google Drive Folder ID.

šŸ”— Link the Sub-Workflow āš ļø Important: This workflow calls itself to process the data recursively.

Open the node named Process backup recursively.

Ensure the Workflow ID field is pointing to this workflow's ID (you can select it from the list after saving the workflow for the first time).

šŸ› ļø Requirements n8n Service Account or API Key.

Google Cloud Console Project with Google Drive API enabled.

0
Downloads
1
Views
6.85
Quality Score
beginner
Complexity
Author:CryoZeroLabs(View Original →)
Created:2/13/2026
Updated:2/22/2026

šŸ”’ Please log in to import templates to n8n and favorite templates

Workflow Visualization

Loading...

Preparing workflow renderer

Comments (0)

Login to post comments