This workflow is designed for n8n users who want an automated way to back up their workflows to Google Drive. It is useful for freelancers, developers, automation agencies, and teams managing multiple workflows who need regular backups for recovery, migration, or version tracking.
The workflow automatically exports all workflows from your n8n instance and stores them as JSON files in a dedicated Google Drive folder. It can be triggered manually or scheduled to run every four hours.
First, the workflow creates a new backup folder in Google Drive with the current date and time in the folder name. It then retrieves all workflows from the connected n8n instance and processes them one by one using a loop. Each workflow is converted into a formatted JSON file and uploaded to the newly created backup folder.
The workflow also checks older backup folders and removes unnecessary folders to help keep storage organized and avoid duplicate backups.
An active n8n instance
Google Drive OAuth2 credentials
n8n API credentials
Permission to create and delete folders in Google Drive
Change the backup schedule in the Schedule Trigger node.
Modify the backup folder naming format if needed.
Store backups in a different Google Drive location.
Adjust the folder cleanup logic to keep more historical backups.
Add notifications through email or Slack after successful backups.