Automated Google Drive Backup for n8n Workflows
detail.loadingPreview
Automatically back up n8n workflows to Google Drive on a schedule.
About This Workflow
This workflow automates the process of backing up your n8n workflows to Google Drive. It creates a new folder for each backup run, based on the current date and time, and then saves the workflow data within that folder. It also includes logic to clean up older backup folders.
Key Features
- Scheduled Backups: Triggered automatically based on a configurable schedule (e.g., every 4 hours).
- Dynamic Folder Creation: Creates uniquely named folders in Google Drive for each backup run.
- Workflow Export: Exports n8n workflow data in JSON format.
- Google Drive Integration: Seamlessly integrates with Google Drive for storage.
- Automated Cleanup (Implied): The
Filteranddelete foldernodes suggest a mechanism for managing old backups, though the exact logic for deciding which to delete is based on theFilterconditions.
How To Use
- Trigger: The workflow can be triggered manually by clicking 'execute' or automatically via the
Schedule Triggernode (configured to run every 4 hours). - Folder Creation: The
create new foldernode creates a new dated folder in your Google Drive account within the 'Workflow Backups' parent folder. - Get n8n Data: The
n8nnode retrieves data related to your n8n instance. This likely involves fetching information about your workflows. - Loop Through Workflows: The
Loop Over Itemsnode processes each item (likely a workflow) received from then8nnode. - Get Existing Folders: The
Get foldersnode fetches existing folders within the main 'Workflow Backups' folder. - Filter Folders: The
Filternode is used to identify folders that should not be deleted. The current condition={{ $json.id }} !== {{ $('create new folder').item.json.id }}seems to be intended to prevent the deletion of the newly created folder within the same run, or potentially other crucial folders. The logic here might need refinement for robust cleanup. - Delete Old Folders: The
delete foldernode removes folders based on the filtering results. This is where older backups would be purged. - Convert to File: The
Convert to Filenode transforms the workflow data into a JSON file. - Upload to Google Drive: The
Google Drivenode uploads the generated JSON file to the newly created folder in Google Drive.
Important: Ensure your Google Drive and n8n credentials are correctly configured.
Apps Used
Workflow JSON
{
"id": "c375ddd6-c5c0-4928-9247-3fb3259e24ab",
"name": "Automated Google Drive Backup for n8n Workflows",
"nodes": 10,
"category": "Automation",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: c375ddd6-c5c0...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Related Workflows
Discover more workflows you might like
MCP Server GitHub Agent Tool
Automate GitHub operations using natural language commands via an MCP Server agent.
Generate Workflow for Notion Database
Automates the creation of an n8n workflow to interact with a specific Notion database, based on a provided URL.
Dynamic Prompt Generation from GitHub with Language Model Integration
Fetches prompts from a GitHub repository, substitutes variables, and processes them with an AI agent.