✨😃Automated Workflow Backups to Google Drive
Configured with Convert To File, Google Drive, Limit, N8N, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- Trigger
- Routing
- Files / media
- Transform
- Integration
- Messaging
- Code
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| On clicking 'execute' | Trigger | Manual Trigger | See node parameters |
| Loop Over Items | Routing | Loop Over Items | See node parameters |
| Every Day | Trigger | Schedule Trigger | See node parameters |
| Create Folder with DateTime Stamp | Files / media | Google Drive | folder |
| Get DateTIme | Transform | Edit Fields | See node parameters |
| Get Workflows | Integration | N8N | See node parameters |
| Limit to 200 | Transform | Limit | See node parameters |
| Convert Workflow to JSON File | Transform | Convert To File | toJson |
| Save JSON File to Google Drive Folder | Files / media | Google Drive | See node parameters |
| Execute Once | Routing | No Op | See node parameters |
| Search Folder Names | Files / media | Google Drive | fileFolder |
| Delete Folders | Files / media | Google Drive | folder / deleteFolder |
| Complete Message | Messaging | Telegram | See node parameters |
| Find Folders to Delete | Code | Code | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
googleDriveOAuth2Apin8nApitelegramApi
Workflow notes
Limit for Debugging
Limit for Debugging
Remove this once you have it up and running
✨😃 Automated Workflow Backups to Google Drive
✨😃 Automated Workflow Backups to Google Drive
This workflow automates the process of backing up your n8n workflows to Google Drive daily. It creates timestamped folders, saves workflows as JSON files, and manages old backups by retaining only the most recent seven days of data. Notifications are sent via Telegram to keep you informed of the backup status.
How It Works
Backup Creation Process 🗂️
- Triggering Backups: The workflow starts with either a manual trigger or a scheduled trigger that runs daily.
- Folder Creation: Creates a new folder in Google Drive with a timestamped name (e.g.,
n8n-Workflow-Backups-YYYY-MM-DD). - Workflow Retrieval: Fetches all workflows from your n8n instance.
- File Conversion: Converts each workflow into a JSON file for storage.
- File Upload: Saves the JSON files into the newly created Google Drive folder.
Backup Management 🔄
- Folder Search: Searches for existing backup folders in Google Drive with names matching
n8n-Workflow-Backups. - Retention Policy: Identifies folders older than seven days using a custom JavaScript function and deletes them permanently to free up space.
Notifications 📲
- Telegram Alerts: Sends a message via Telegram once the backup process is complete, including the folder name and a link to access it in Google Drive.
Setup Steps
API Configuration 🔑
- Google Drive Integration:
- Set up Google Drive OAuth2 credentials in n8n.
- Specify the root folder or desired location for backups.
- n8n API Access:
- Configure n8n API credentials to allow fetching workflows.
- Telegram Notifications:
- Add your Telegram bot credentials and chat ID for notification delivery.
Workflow Customization ⚙️
- Define the schedule for automatic backups (e.g., daily at midnight).
- Adjust the retention period if you need more or fewer days of backups.
- Customize the Telegram message format as needed.
Testing & Deployment 🚀
- Run the workflow manually to verify folder creation and file uploads.
- Check that old folders are deleted correctly after seven days.
- Confirm Telegram notifications are sent with accurate details.
Use Case Scenarios
This workflow is perfect for teams or individuals who want to ensure their n8n workflows are securely backed up and organized. It is especially useful for:
- Protecting against accidental data loss.
- Automating routine administrative tasks.
By combining automated backups, retention management, and real-time notifications, this workflow ensures your n8n workflows are always safe and accessible!
✨😃Automated Workflow Backups to Google Drive
✨😃Automated Workflow Backups to Google Drive
Purpose and structure
This folder contains the ✨😃Automated Workflow Backups to Google Drive workflow. Its executable nodes use code, convertToFile, googleDrive, limit, manualTrigger, n8n, noOp, scheduleTrigger, set, splitInBatches, telegram. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
On clicking 'execute', Every Day
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Telegram/1940_Telegram_Limit_Export_Scheduled.json MIT; preserve source notices.
Canvas section labels
These name areas of the original canvas; they do not include explanatory instructions.
- Save Workflows to Google Drive
- Keep Most Recent 7 Folders (Days) and Delete Others
- Notify User via Telegram
- Get All Workflows
- Create NEW Google Folder
- Get DateTime Stamp