← All N8N workflows
Messaging & emailCodeConvert To FileGoogle DriveLimitManual Trigger

✨😃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.

Workflow preview
TriggerOn clicking 'execute'Manual TriggerRoutingLoop Over ItemsLoop Over ItemsTriggerEvery DaySchedule TriggerFiles / mediaCreate Folder withDateTime StampGoogle DriveTransformGet DateTImeEdit FieldsIntegrationGet WorkflowsN8NTransformLimit to 200LimitTransformConvert Workflow toJSON FileConvert To FileFiles / mediaSave JSON File toGoogle Drive FolderGoogle DriveRoutingExecute OnceNo OpFiles / mediaSearch Folder NamesGoogle DriveFiles / mediaDelete FoldersGoogle DriveMessagingComplete MessageTelegramCodeFind Folders to DeleteCode

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.

Workflow node names, types, and operations
NodeCategoryTypeOperation
On clicking 'execute'TriggerManual TriggerSee node parameters
Loop Over ItemsRoutingLoop Over ItemsSee node parameters
Every DayTriggerSchedule TriggerSee node parameters
Create Folder with DateTime StampFiles / mediaGoogle Drivefolder
Get DateTImeTransformEdit FieldsSee node parameters
Get WorkflowsIntegrationN8NSee node parameters
Limit to 200TransformLimitSee node parameters
Convert Workflow to JSON FileTransformConvert To FiletoJson
Save JSON File to Google Drive FolderFiles / mediaGoogle DriveSee node parameters
Execute OnceRoutingNo OpSee node parameters
Search Folder NamesFiles / mediaGoogle DrivefileFolder
Delete FoldersFiles / mediaGoogle Drivefolder / deleteFolder
Complete MessageMessagingTelegramSee node parameters
Find Folders to DeleteCodeCodeSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. 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

  • googleDriveOAuth2Api
  • n8nApi
  • telegramApi

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 🔑

  1. Google Drive Integration:
    • Set up Google Drive OAuth2 credentials in n8n.
    • Specify the root folder or desired location for backups.
  2. n8n API Access:
    • Configure n8n API credentials to allow fetching workflows.
  3. Telegram Notifications:
    • Add your Telegram bot credentials and chat ID for notification delivery.

Workflow Customization ⚙️

  1. Define the schedule for automatic backups (e.g., daily at midnight).
  2. Adjust the retention period if you need more or fewer days of backups.
  3. Customize the Telegram message format as needed.

Testing & Deployment 🚀

  1. Run the workflow manually to verify folder creation and file uploads.
  2. Check that old folders are deleted correctly after seven days.
  3. 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

More in Messaging & email