Automated Backup of n8n Workflows to Google Drive
This workflow is designed to automate the backup of workflow data to Google Drive, supporting both scheduled and manual triggers. The backups are saved in JSON format and organized into folders by date for easier management. By automating backups and cleaning up old folders, users can effectively avoid data loss and enhance the security and reliability of the workflow, making it suitable for individuals or businesses that require regular backups and archiving. This tool significantly improves the operational efficiency of workflows and ensures business continuity.

Workflow Name
Automated Backup of n8n Workflows to Google Drive
Key Features and Highlights
This workflow automates the export and backup of workflow data from the n8n platform to Google Drive. It supports both scheduled and manual triggers, saves backup files in JSON format, and automatically creates date-based backup folders for easy archiving and management.
Core Problems Addressed
Automates the backup of workflow configurations to prevent data loss caused by accidental operations or system failures, enhancing the security and reliability of workflow management. Additionally, it maintains Google Drive storage cleanliness by automatically cleaning up old backup folders.
Application Scenarios
Ideal for enterprises or individuals using n8n for process automation who require regular backups of workflow configurations to ensure business continuity. Also suitable for operations personnel looking to automate the management and archiving of process configuration files.
Main Process Steps
- Trigger Methods: Supports manual execution via button click and automatic scheduled triggers every 4 hours.
- Create Backup Folder: Generates a new backup folder in a specified Google Drive directory based on the current date and time.
- Call n8n API: Retrieves all currently configured workflow data.
- Process Workflow Data Loop: Converts each workflow into a JSON file.
- Upload Backup Files: Uploads the generated JSON files to the newly created backup folder.
- Manage Old Backups: Retrieves the list of old backup folders, filters, and deletes redundant or invalid folders to keep the backup directory organized.
Involved Systems or Services
- n8n API: Used to fetch current workflow information.
- Google Drive: Used to store workflow JSON backup files and manage backup folders.
- n8n Built-in Nodes: Including manual trigger, scheduled trigger, loop processing, file conversion, filter, and others.
Target Users and Value
- n8n automation platform users
- IT operations and automation engineers
- Enterprise teams requiring secure workflow configuration backups
- Users seeking automated tools to manage backup files
This workflow enables users to effortlessly automate workflow configuration backups and periodic cleanup, improving workflow maintenance efficiency and reducing the risk of data loss.