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) ๐Ÿ‡ช๐Ÿ‡ธ โฐ Schedule Trigger โ€“ Runs automatically every day at 4:00 AM ๐Ÿ“ Create New Folder โ€“ Creates a timestamped backup folder in Google Drive ๐Ÿ”Œ n8n API Connection โ€“ Fetches all workflows from your n8n instance ๐Ÿ”„ 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

Configure n8n API credentials: Format: https://your-instance.n8n.io/api/v1 Generate API key from your n8n instance settings

Set up Google Drive credentials: Connect your Google account via OAuth2 Grant necessary permissions for folder creation and file management

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

Adjust schedule (optional): Default: 4:00 AM daily Modify triggerAtHour in Schedule Trigger node

Test manually: Use the Manual Trigger to test before scheduling Verify folders are created and files are saved correctly

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

0
Downloads
0
Views
6.98
Quality Score
beginner
Complexity
Author:Jose Bossa(View Original โ†’)
Created:10/20/2025
Updated:11/10/2025

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

Workflow Visualization

Loading...

Preparing workflow renderer

Comments (0)

Login to post comments