Automated Workflow Backup with Google Drive Archiving
detail.loadingPreview
Securely automate the backup and archiving of your n8n workflows to Google Drive. This solution ensures your valuable automation configurations are regularly saved and organized by date, with a separate archive for workflows marked for deletion.
About This Workflow
This n8n workflow provides a robust solution for backing up your n8n automation processes. Scheduled to run at your preferred interval, it first creates a dated folder in Google Drive for organized storage. It then fetches all your current workflows, checks for specific 'ARCHIVE' markers, and saves them accordingly. 'ARCHIVE' workflows are processed separately for dedicated archiving, while all other workflows are saved to their designated location. Finally, workflows flagged for archiving are deleted from your n8n instance, ensuring a clean and up-to-date system. This ensures your automation assets are always protected and manageable.
Key Features
- Automated Scheduling: Set your backup frequency to ensure continuous protection of your workflows.
- Organized Cloud Storage: Workflows are automatically saved into dated folders within your Google Drive for easy retrieval.
- Conditional Archiving: Intelligently separates and archives workflows marked for deletion, streamlining your cleanup process.
- Data Safety: Prevents data loss by maintaining regular backups of your critical automation setups.
- Efficient Cleanup: Automatically deletes archived workflows from your n8n instance, keeping your workspace tidy.
How To Use
- Schedule Trigger: Configure the
Schedule Triggernode to define how often your backup process should run (e.g., daily, weekly). - Create to date folder: Set up the
Create to date foldernode to connect to your Google Drive and specify a base directory for your backups. This node will dynamically create a new folder for each day's backup. - GET Workflows: Ensure the
GET Workflowsnode is configured to pull all available workflows from your n8n instance. - If: Configure the
Ifnode to check for a condition that identifies workflows intended for archiving (e.g., a specific tag or name convention). - Convert to JSON' (for archive): If a workflow is marked for archiving, use this node to convert it into a JSON format suitable for saving.
- Convert to JSON (for others): For workflows not marked for archiving, use this node to convert them into JSON format.
- Save 'ARCHIVE' Workflows: Use the
Save 'ARCHIVE' Workflowsnode to upload the JSON-converted archived workflows to your designated Google Drive location. - Save all other Workflows: Use the
Save all other Workflowsnode to upload the JSON-converted non-archived workflows to Google Drive. - Delete 'ARCHIVE' Workflows: Once successfully saved, configure the
Delete 'ARCHIVE' Workflowsnode to remove the archived workflows from your n8n instance.
Apps Used
Workflow JSON
{
"id": "3b6fa765-6aa4-40f9-8fc8-ec0f4de03ea9",
"name": "Automated Workflow Backup with Google Drive Archiving",
"nodes": 28,
"category": "Operations",
"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: 3b6fa765-6aa4...
About the Author
N8N_Community_Pick
Curator
Hand-picked high quality workflows from the global community.
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.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.