Automated n8n Workflow Backup to Google Drive
detail.loadingPreview
Automates the backup of n8n workflows to Google Drive, with options for updating existing backups or creating new ones, and notifications.
About This Workflow
This workflow is designed to automatically back up your n8n workflows to a specified Google Drive folder. It checks if a backup of a specific workflow already exists in Google Drive. If it does, it updates the existing file; otherwise, it creates a new file. The workflow is triggered on a schedule and can also be executed by another workflow. It includes error handling and sends success/failure notifications via email and Discord.
Key Features
- Scheduled Backups: Triggers workflow backups at a specified time.
- Conditional Backup Logic: Differentiates between initial backups and updates for existing workflows.
- Google Drive Integration: Leverages Google Drive for secure storage of workflow JSON files.
- Flexible Triggering: Can be triggered by a schedule or by other n8n workflows.
- Notification System: Sends email and Discord notifications for backup success or failure.
- Error Handling: Includes
onErrorandretryOnFailconfigurations for robustness.
How To Use
- Set up n8n API Credentials: Ensure the
n8n accountcredential (ID:WR8oA7tQqdurDv3Y) is correctly configured to access your n8n instance. - Configure Google Drive Credentials: Set up and authenticate the
Google Drive OAuth2 APIcredential (ID:FsjSbb8sdqbZm9dM) with appropriate permissions for your Google Drive. - Define Google Drive Folder: In the
Parametersnode (ID:cb5cc7fb-f24f-48be-a175-c24bf830dce2), update thedirectoryparameter with the Google Drive folder URL where you want to store the backups. - Configure Email Notifications: In the
successEmail(ID:d243a474-9139-4af4-8134-df815a4af806) andfailureEmail(ID:306a1d38-27ef-4249-956a-cfec30d898b1) nodes, replace'your email address'with your actual email address. - Configure Discord Notifications: In the
Discordnode (ID:cabf9b91-5a2f-4c8f-ae07-318fca57b54f), ensure thechannelIdis set to your desired Discord channel. - Schedule Trigger: Adjust the
Schedule Triggernode (ID:d74c545f-17ab-47f7-bb2a-93c9e9673bab) to your preferred backup schedule (e.g.,triggerAtHour: 1, triggerAtMinute: 30for 1:30 AM daily). - Execute Other Workflow: If you intend to trigger this workflow from another, ensure the
Execute Workflownode (ID:7110911a-c6c6-4ef6-888f-f640784d077b) has the correctworkflowId(DfMF9CmVw6FU4hYm). - Review Sticky Notes: The sticky notes provide helpful context and instructions, especially for initial setup.
Apps Used
Workflow JSON
{
"id": "ab616971-5c13-4fcc-afa7-d7a5dc737279",
"name": "Automated n8n Workflow Backup to Google Drive",
"nodes": 5,
"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: ab616971-5c13...
About the Author
SaaS_Connector
Integration Guru
Connecting CRM, Notion, and Slack to automate your life.
Statistics
Related Workflows
Discover more workflows you might like
Automated Google Drive Backup for n8n Workflows
Automatically back up n8n workflows to Google Drive on a schedule.
Generate Structured Metadata for Standup Bot
This workflow generates structured configuration metadata for a standup bot, saving it as a JSON file.
Supply Chain Delay Monitor
Automated monitoring and logging of supply chain delays using a webhook, text processing, embeddings, and a vector store.