Skip to main content

Backup & restore n8n workflows with Telegram, Google Drive and form upload

Workflow preview

Workflow preview
100%
Backup & restore n8n workflows with Telegram, Google Drive and form upload preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Secure your n8n automations with this comprehensive template that automates periodic backups to Telegram for instant access while enabling flexible restores from Google Drive links or direct file u...

Best for

  • DevOps automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.scheduletrigger, n8n-nodes-base.stickynote, n8n-nodes-base.n8n, n8n-nodes-base.aggregate, n8n-nodes-base.converttofile, n8n-nodes-base.telegram, n8n-nodes-base.googledrive

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Daniel Nkencho.

Original n8n.io source

1.1 Workflow description

Title
Backup & restore n8n workflows with Telegram, Google Drive and form upload
Workflow name
Backup & restore n8n workflows with Telegram, Google Drive and form upload

Secure your n8n automations with this comprehensive template that automates periodic backups to Telegram for instant access while enabling flexible restores from Google Drive links or direct file uploads—ensuring quick recovery without data loss.

📋 What This Template Does

This dual-branch workflow handles full n8n instance backups and restores seamlessly. The backup arm runs every 3 days, fetching all workflows via the n8n API, aggregating them into a JSON array, converting to a text file, and sending it to Telegram for offsite storage and sharing. The restore arm supports two entry points: manual execution to pull a backup from Google Drive or form-based upload for local files, then parses the JSON, cleans workflows for compatibility, and loops to create missing ones or update existing by name—handling batches efficiently to respect API limits.

  • Scheduled backups with Telegram delivery for easy stakeholder access
  • Dual restore paths: Drive download or direct file upload via form
  • Intelligent create-or-update logic with data sanitization to avoid conflicts
  • Looped processing with existence checks and error continuation

🔧 Prerequisites

  • n8n instance with API enabled (self-hosted or cloud)
  • Telegram account for bot setup
  • Google Drive account (optional, for Drive-based restores)

🔑 Required Credentials

n8n API Setup

  1. In n8n, navigate to Settings → n8n API
  2. Enable the API and generate a new key
  3. Add to n8n as "n8n API" credential type, pasting the key in the API Key field

Telegram API Setup

  1. Message @BotFather on Telegram to create a new bot and get your token
  2. Find your chat ID by messaging @userinfobot
  3. Add to n8n as "Telegram API" credential type, entering the Bot Token

Google Drive OAuth2 API Setup

  1. In Google Cloud Console, go to APIs & Services → Credentials
  2. Create an OAuth 2.0 Client ID for Web application, enable Drive API
  3. Add redirect URI: [your-n8n-instance-url]/rest/oauth2-credential/callback
  4. Add to n8n as "Google Drive OAuth2 API" credential type and authorize

⚙️ Configuration Steps

  1. Import the workflow JSON into your n8n instance
  2. Assign the n8n API, Telegram API, and Google Drive credentials to their nodes
  3. Update the Telegram chat ID in the "Send Backup to Telegram" node
  4. Set the Google Drive file ID in the "Download Backup from Drive" node (from file URL)
  5. Activate the workflow and test backup by executing the Schedule node manually
  6. Test restore: Run manual trigger for Drive or use the form for upload

🎯 Use Cases

  • Dev teams backing up staging workflows to Telegram for rapid production restores during deployments
  • Solo automators uploading local backups via form to sync across devices after n8n migrations
  • Agencies sharing client workflow archives via Drive links for secure, collaborative restores
  • Educational setups scheduling exports to Telegram for student template distribution and recovery

⚠️ Troubleshooting

  • Backup file empty: Verify n8n API permissions include read access to workflows
  • Restore parse errors: Check JSON validity in backup file; adjust Code node property reference if needed
  • API rate limits hit: Increase Wait node duration or reduce batch size in Loop
  • Form upload fails: Ensure file is valid JSON text; test with small backup first

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Manual Trigger

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Schedule Backup Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 3 - Note: Schedule Trigger

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Fetch All Workflows

Type / Role
n8n-nodes-base.n8n - n8n
Config choices
Version 1

Block 5 - Note: Fetch Workflows

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Aggregate Workflows

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 7 - Note: Aggregate Data

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Convert to Backup File

Type / Role
n8n-nodes-base.convertToFile - convertToFile
Config choices
Version 1.1

Block 9 - Note: Convert File

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Send Backup to Telegram

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 11 - Note: Send to Telegram

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Download Backup from Drive

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 13 - Note: Download from Drive

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Form Restore Trigger

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 15 - Note: Form Trigger

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Extract Backup Text

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

Block 17 - Note: Extract Text

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Parse Backup JSON

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 19 - Note: Parse JSON

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Process Each Workflow

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 21 - Note: Workflow Loop

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Check Workflow Existence

Type / Role
n8n-nodes-base.n8n - n8n
Config choices
Version 1

Block 23 - If Workflow Exists

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 24 - Create New Workflow

Type / Role
n8n-nodes-base.n8n - n8n
Config choices
Version 1

Showing the first 24 of 28 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Backup & restore n8n workflows with Telegram, Google Drive and form upload
Complexity advanced
Nodes 28
Categories DevOps
Author Daniel Nkencho
Published 14 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9645/9645.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Backup & restore n8n workflows with Telegram, Google Drive and form upload do?

Secure your n8n automations with this comprehensive template that automates periodic backups to Telegram for instant access while enabling flexible restores from Google Drive links or direct file u...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps use case.