✨😃Automated Workflow Backups to Google Drive

Automated Workflow Backups to Google Drive securely saves your n8n workflows daily, creating timestamped folders and storing them as JSON files. It retains only the most recent seven days of backups, ensuring efficient storage management. Notifications via Telegram keep you updated on backup completion, providing easy access to your data and protecting against accidental loss.

7/8/2025
22 nodes
Complex
schedulecomplexsplitinbatchesschedule triggergoogle driven8nconverttofilenooptelegramsticky noteautomationadvancedcronfilesstoragecommunicationbot
Categories:
Communication & MessagingSchedule TriggeredComplex Workflow
Integrations:
SplitInBatchesSchedule TriggerGoogle DriveN8nConvertToFileNoOpTelegramSticky Note

Target Audience

Who Should Use This Workflow


- n8n Users: Individuals and teams using n8n for automation tasks looking for a reliable backup solution.
- Data Administrators: Those responsible for managing and safeguarding workflow data and ensuring data integrity.
- Small Business Owners: Entrepreneurs who want to automate backups of their workflows to prevent data loss and maintain business continuity.
- Developers and Tech Enthusiasts: Anyone interested in automating tasks and improving their workflow management processes.

Problem Solved

What Problem Does This Workflow Solve


- Data Loss Prevention: It automates the backup of n8n workflows, ensuring that users do not lose critical workflow configurations.
- Storage Management: The workflow intelligently manages storage by keeping only the most recent 7 days of backups, thus preventing clutter and optimizing space in Google Drive.
- Time Efficiency: Automates the backup process, saving users time and effort that would otherwise be spent on manual backups.
- Real-time Notifications: Provides immediate feedback via Telegram notifications, keeping users informed about the backup status and folder details.

Workflow Steps

Detailed Explanation of the Workflow Process


1. Triggering the Workflow: The workflow can be initiated manually or scheduled to run daily using the Schedule Trigger node.
2. Getting Current DateTime: The workflow retrieves the current date and time to create a timestamp for the backup folder.
3. Creating Backup Folder: A new folder is created in Google Drive with the name format n8n-Workflow-Backups-YYYY-MM-DD to organize backups by date.
4. Fetching Workflows: The workflow retrieves all existing workflows from the n8n instance, ensuring that the latest versions are backed up.
5. Limiting Workflow Count: To optimize performance, the workflow limits the number of workflows fetched to 200.
6. Converting Workflows to JSON: Each workflow is converted into a JSON file, making it easy to store and restore.
7. Saving JSON Files: The JSON files are saved in the newly created Google Drive folder.
8. Searching for Old Backup Folders: The workflow searches for existing backup folders to identify those that need to be deleted based on a retention policy.
9. Deleting Old Folders: Folders older than 7 days are identified and deleted to free up space.
10. Sending Notifications: After the backup process is complete, a notification is sent via Telegram with details about the backup, including the folder link.

Customization Guide

How Users Can Customize and Adapt This Workflow


- Schedule Adjustments: Modify the schedule in the Schedule Trigger node to change the frequency of backups (e.g., weekly instead of daily).
- Retention Policy: Adjust the retention period in the Find Folders to Delete node to keep more or fewer backup folders based on your needs.
- Folder Naming Convention: Change the naming format of the backup folders in the Create Folder with DateTime Stamp node to suit your organizational preferences.
- Notification Settings: Customize the Telegram message format in the Complete Message node to include additional information or change the notification style.
- Workflow Filters: Modify the filters in the Get Workflows node to target specific workflows for backup, allowing for more granular control.