If you're using a self-hosted n8n instance, there's no built-in version history or undo for your workflows. If a workflow is accidentally modified or deleted, there's no way to roll back. This backup workflow solves that problem by automatically syncing your workflows to Google Drive, giving you version control and peace of mind.
n8n-workflow-backups
) where backups will be stored.Authorization: Bearer <your_token>
Scheduled Trigger
Fetch All Workflows
/workflows
) to retrieve a list of all existing workflows.Loop Through Workflows
Smart Change Detection
.json
file is uploaded to the corresponding folder.YYYY-MM-DD-HH-mm-ss.json
) to maintain a versioned history.Backups are neatly organized by workflow and version:
/n8n-workflow-backups/
├── google-drive-backup-KqhdMBHIyAaE7p7v/
│ ├── 2025-07-15-13-03-32.json
│ ├── 2025-07-14-03-08-12.json
├── resume-video-avatar-KqhdMBHIyAaE8p8vr/
│ ├── 2025-07-15-23-05-52.json
Each folder is named after the workflow's name+id and contains timestamped versions.
📅 Change Backup Frequency
Adjust the Cron node to run backups daily, weekly, or even hourly based on your needs.
📤 Use a Different Storage Provider
You can swap out Google Drive for Dropbox, S3, or another cloud provider with minimal changes.
🧪 Add Workflow Filtering
Only back up workflows that are active or match specific tags by filtering results from the n8n API.
.json
file (based on the date).You can choose to overwrite an existing workflow or import it as a new one.
This template is ideal for:
Consider enabling version history in Google Drive so you get even more fine-grained backup recovery options on top of what this workflow provides!
Just plug in your n8n token, connect Google Drive, and schedule your backups. Your workflows are now protected!