Automated n8n Backup Folder Setup on Google Drive
detail.loadingPreview
This n8n workflow intelligently sets up a structured backup system in your Google Drive, automatically creating dedicated 'n8n_backups' and 'n8n_old' folders. It's the essential first step towards automating your n8n instance backups and managing their retention effortlessly.
About This Workflow
Are you tired of manually creating folders for your n8n backups? This workflow takes the hassle out of setting up your Google Drive for efficient backup management. It begins by checking for the existence of two critical folders: "n8n_backups" and "n8n_old". If either is missing, the workflow automatically creates them, ensuring a standardized and ready-to-use structure. This foundational setup allows you to seamlessly integrate further automation for moving current backups to an "old" archive and purging aged files, streamlining your entire backup strategy and maintaining data hygiene without manual intervention.
Key Features
- Automated Google Drive Folder Creation: Ensures "n8n_backups" and "n8n_old" directories are present in your Google Drive root.
- Intelligent Folder Pre-Check: Prevents duplicate folder creation by verifying existence before creating.
- Dynamic Backup Naming Foundation: The
Move Binary Datanode is configured to prepare files with dynamic names, ready for a robust backup strategy. - Scalable Backup Infrastructure: Lays the groundwork for advanced backup rotation, archiving, and retention policies.
How To Use
- Obtain Google Drive Credentials: Ensure you have an n8n credential for Google Drive (OAuth2 recommended) linked to your desired Google account.
- Import the Workflow: Copy and paste this JSON snippet into your n8n instance to import the workflow.
- Connect Credentials: Update the Google Drive nodes (
GET CURRENT FOLDER,Create n8n_backups,Create n8n_old) to use your Google Drive credentials. - Execute the Workflow: Run the workflow. It will automatically check for and create the
n8n_backupsandn8n_oldfolders in your Google Drive's root directory if they don't already exist. - Extend for Full Backup Automation: Connect your n8n backup generation process before the
Move Binary Datanode. Then, extend the workflow to move generated backups inton8n_backups, and subsequently move files fromn8n_backupston8n_oldfor archiving, and finally, add logic to delete files fromn8n_oldbased on your desired retention policy (e.g., older than 30 days, as hinted in the sticky notes).
Apps Used
Workflow JSON
{
"id": "17aab1ae-6dfb-49c0-b904-eaa61419653a",
"name": "Automated n8n Backup Folder Setup on Google Drive",
"nodes": 29,
"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: 17aab1ae-6dfb...
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.