Skip to main content

Restore n8n workflows from Google Drive backups

Workflow preview

Workflow preview
100%
Restore n8n workflows from Google Drive backups preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Restore All n8n Workflows from Google Drive Backups Restoring multiple n8n workflows manually, especially when migrating your n8n instance to another host or server, can be an incredibly daunting a...

Best for

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

Tools used

n8n-nodes-base.googledrive, n8n-nodes-base.stickynote, n8n-nodes-base.splitinbatches, n8n-nodes-base.extractfromfile, n8n-nodes-base.wait, n8n-nodes-base.n8n, n8n-nodes-base.manualtrigger

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Restore n8n workflows from Google Drive backups
Workflow name
Restore n8n workflows from Google Drive backups

Restore All n8n Workflows from Google Drive Backups

Restoring multiple n8n workflows manually, especially when migrating your n8n instance to another host or server, can be an incredibly daunting and time-consuming task. Imagine having to individually export and then manually import hundreds of workflows; it's a recipe for errors and significant downtime.

This workflow provides a streamlined way to restore all your n8n workflows from backup JSON files stored in a designated Google Drive folder. It's an essential tool for disaster recovery, migrating workflows to a new n8n instance, or recovering from accidental deletions, ideally used in conjunction with a backup solution like our "Auto Backup Workflows To Google Drive" template.

For more powerful n8n templates, visit our website or contact us at AI Automation Pro. We help your business build custom AI workflow automation and apps.

Who is this for?

This template is intended for:

  • n8n Users and Administrators: Who have previously backed up their n8n workflows as JSON files to Google Drive.
  • Anyone needing to recover their n8n setup: Whether due to system failure, data corruption, accidental deletions, or during an instance migration.

What problem is this workflow solving? / use case

Restoring multiple n8n workflows manually can be a slow and error-prone process. This workflow solves that by:

  • Automating Bulk Restore: Quickly re-imports all workflows from a specified Google Drive backup folder, drastically cutting down on manual effort.
  • Disaster Recovery: Enables rapid recovery of your automation environment, minimizing downtime after a system failure or data corruption.
  • Simplified Instance Migration: Makes the process of transferring your entire workflow suite to a new n8n server significantly more manageable and less error-prone compared to manual imports.
  • Data Integrity: Helps restore workflows to a known good state from your backups, ensuring consistency after a recovery or migration.

What this workflow does

  1. Manual Trigger: You initiate the workflow manually whenever a restore operation is needed.
  2. List Backup Files: The workflow accesses a specific Google Drive folder (which you must configure) and lists all the files within it. It assumes these are your n8n workflow JSON backup files.
  3. Iterate and Process: It then loops through each file found in the Google Drive folder:
    • Download Workflow: Downloads the individual workflow JSON file from Google Drive.
    • Extract Content: Parses the downloaded file to extract the JSON data representing the workflow.
    • Import to n8n: Uses the n8n API to create a new workflow (or update an existing one if an ID match is found) in your current n8n instance using the extracted JSON data.
    • Wait Step: Pauses for 3 seconds after attempting to create each workflow to help manage system load and avoid potential API rate-limiting issues.

Step-by-step setup

  1. Import Template: Upload the provided JSON file into your n8n instance.
  2. Configure Credentials:
    • Google Drive Nodes: You will need to create or select existing Google Drive OAuth2 API credentials for these nodes.
    • n8n Node: Configure your n8n API credentials to allow the workflow to create/update workflows in your instance.
  3. Specify Google Drive Backup Folder (CRITICAL):
    • Open the "Google Drive Get All Workflows" node.
    • Locate the "Filter" section, and within it, the "Folder ID" parameter. The default value is a placeholder URL.
    • You MUST change this URL to the direct URL of the Google Drive folder that contains your n8n workflow .json backup files. This would typically be one of the hourly folders (e.g., n8n_backup_YYYY-MM-DD_HH) created by the companion backup workflow.
  4. Activate Workflow: Although manually triggered, the workflow needs to be active in your n8n instance to be runnable.

How to customize this workflow to your needs

  • Selective Restore:
    • Option 1 (Manual): Before running the workflow, manually move only the specific workflow JSON files you want to restore into the source Google Drive folder configured in the "Google Drive Get All Workflows" node.
    • Option 2 (Automated Filter): Insert an "Edit Fields" or "Filter" node after the "Google Drive Get All Workflows" node to programmatically select which files (e.g., based on filename patterns) should proceed to the "Loop Over Items" node for restoration.
  • Adjust Wait Time: The "Wait" node is set to 3 seconds. You can increase this if you have a very large number of workflows or if your n8n instance requires more time between API calls. Conversely, for smaller batches on powerful instances, you might decrease it.
  • Error Handling: For enhanced robustness, consider adding error handling branches (e.g., using "Error Trigger" nodes or "Continue on Fail" settings within nodes) to log or send notifications if a specific workflow fails to import.

Important Considerations

  • Workflow Overwriting/Updating: If a workflow with the same id as one in a backup JSON file already exists in your n8n instance, this restore process will typically update/overwrite that existing workflow with the version from the backup. If the id from the backup file does not correspond to any existing workflow, a new workflow will be created.
  • Idempotency: Running this workflow multiple times on the exact same backup folder will cause the workflow to re-process all files. This means workflows will be updated/overwritten again if they exist, or created if they don't. Ensure this is the intended behavior.
  • Companion Backup Workflow: This restore workflow is ideally paired with backups created by a process like our "Auto Backup Workflows To Google Drive" template, which saves workflows in the expected JSON format.
  • Test Safely: It's highly recommended to test this workflow on a non-production or development n8n instance first, especially when restoring a large number of critical workflows or if you're unsure about the overwrite behavior in your specific n8n setup.
  • Source Folder Content: Ensure the specified Google Drive folder only contains n8n workflow JSON files that you intend to restore. Other file types may cause errors in the "Extract from File" node.

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 - Google Drive Get All Workflows

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

Block 2 - Sticky Note6

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

Block 3 - Sticky Note

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

Block 4 - Loop Over Items

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

Block 5 - Extract from File

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

Block 6 - Wait

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

Block 7 - Google Drive Download Workflow

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

Block 8 - n8n Create Workflow

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

Block 9 - Clicking Trigger

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

Block 10 - Sticky Note1

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

3. Summary Table

Workflow Restore n8n workflows from Google Drive backups
Complexity intermediate
Nodes 10
Categories DevOps
Author Daniel Ng
Published 30 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4516/4516.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 Restore n8n workflows from Google Drive backups do?

Restore All n8n Workflows from Google Drive Backups Restoring multiple n8n workflows manually, especially when migrating your n8n instance to another host or server, can be an incredibly daunting a...

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.