Automated Google Drive Backup for n8n Workflows
detail.loadingPreview
This workflow automates the backup of your n8n workflows to Google Drive, creating a new dated folder for each execution.
About This Workflow
This n8n workflow is designed to automatically back up your n8n workflow configurations to Google Drive. It leverages a schedule trigger to initiate the process, creates a new, uniquely named folder for each backup run, retrieves existing workflow files (implied by the 'Get folders' node within a specific backup root), processes them into JSON files, and uploads them to the newly created dated folder. Additionally, it includes a mechanism to clean up older backup folders to manage storage space. The workflow can also be manually triggered.
Key Features
- Scheduled Backups: Automatically backs up n8n workflows at a defined interval (e.g., every 4 hours).
- Dynamic Folder Creation: Creates a new folder in Google Drive for each backup run, named with the current date and time.
- Workflow File Retrieval: Fetches existing workflow files from a designated 'Workflow Backups' root folder.
- JSON Conversion: Converts workflow data into JSON format.
- Google Drive Upload: Uploads the converted JSON files into the newly created dated backup folder.
- Automated Cleanup: Filters and deletes older backup folders to optimize storage.
- Manual Trigger: Allows for on-demand execution of the backup process.
How To Use
- Configure Triggers: Set up the
Schedule Triggerto define how often backups should occur (e.g., every 4 hours). Alternatively, use theOn clicking 'execute'node for manual backups. - Set up Google Drive Credentials: Ensure your
Google Drive account✅credential is correctly configured and authorized. - Define Backup Location: The
create new foldernode is configured to create folders within 'My Drive' and under a specific parent folder with ID1hnHubRgcstU8OgV8BPwPNivfTZT5g2Wf(named 'Workflow Backups'). AdjustdriveIdandfolderIdif needed. - Configure n8n Node: The
n8nnode is set to retrieve workflow data. Ensure this node is correctly configured to access the workflows you intend to back up. - Review Cleanup Logic: The
Filteranddelete foldernodes are responsible for deleting older backups. Examine the filter conditions in theFilternode and thefolderNoRootIdin thedelete foldernode to ensure it correctly targets and removes old backups without deleting current ones. - Run the Workflow: Execute the workflow manually or wait for the scheduled trigger.
Apps Used
Workflow JSON
{
"id": "1dd1a9db-c3ea-4ec6-b269-a17f2b830fea",
"name": "Automated Google Drive Backup for n8n Workflows",
"nodes": 29,
"category": "Backup & Archiving",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 1dd1a9db-c3ea...
About the Author
DevOps_Master_X
Infrastructure Expert
Specializing in CI/CD pipelines, Docker, and Kubernetes automations.
Statistics
Related Workflows
Discover more workflows you might like
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.
Automate Local Business Outreach with AI-Powered Yelp Scraper
This workflow automates the process of scraping local business details from Yelp using AI, then leverages that data to send personalized partnership proposals via Gmail. It's perfect for sales and marketing teams looking to streamline lead generation and outreach campaigns.
Automate Getty Images Editorial Search & CMS Integration
This n8n workflow automates searching for editorial images on Getty Images, extracts key details and embed codes, and prepares them for seamless integration into your Content Management System (CMS), streamlining your content creation process.