Skip to main content

Back up workflow JSON files to Google Drive using the n8n API

Workflow preview

Workflow preview
100%
Back up workflow JSON files to Google Drive using the n8n API preview
Open on n8n.io

1. Workflow Overview

Who’s it for This workflow is designed for n8n users who want an automated way to back up their workflows to Google Drive. It is useful for freelancers, developers, automation agencies, and teams m...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.splitinbatches, n8n-nodes-base.converttofile, n8n-nodes-base.scheduletrigger, n8n-nodes-base.filter, n8n-nodes-base.googledrive, 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 Safa Khan.

Original n8n.io source

1.1 Workflow description

Title
Back up workflow JSON files to Google Drive using the n8n API
Workflow name
Back up workflow JSON files to Google Drive using the n8n API

Who’s it for

This workflow is designed for n8n users who want an automated way to back up their workflows to Google Drive. It is useful for freelancers, developers, automation agencies, and teams managing multiple workflows who need regular backups for recovery, migration, or version tracking.

How it works / What it does

The workflow automatically exports all workflows from your n8n instance and stores them as JSON files in a dedicated Google Drive folder. It can be triggered manually or scheduled to run every four hours.

First, the workflow creates a new backup folder in Google Drive with the current date and time in the folder name. It then retrieves all workflows from the connected n8n instance and processes them one by one using a loop. Each workflow is converted into a formatted JSON file and uploaded to the newly created backup folder.

The workflow also checks older backup folders and removes unnecessary folders to help keep storage organized and avoid duplicate backups.

How to set up

  1. Import the workflow into n8n.
  2. Connect your n8n API credentials.
  3. Connect your Google Drive account.
  4. Create or select a parent folder in Google Drive for storing backups.
  5. Update the Google Drive folder IDs in the relevant nodes.
  6. Activate the workflow or run it manually for testing.

Requirements

An active n8n instance Google Drive OAuth2 credentials n8n API credentials Permission to create and delete folders in Google Drive

How to customize the workflow

Change the backup schedule in the Schedule Trigger node. Modify the backup folder naming format if needed. Store backups in a different Google Drive location. Adjust the folder cleanup logic to keep more historical backups. Add notifications through email or Slack after successful backups.

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 - Sticky Note1

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

Block 2 - Sticky Note2

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

Block 3 - Sticky Note3

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

Block 4 - Sticky Note4

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

Block 5 - Batch Process Items

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

Block 6 - Convert Data to File

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

Block 7 - Scheduled Every 4 Hours

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

Block 8 - Filter by Condition

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

Block 9 - Delete Google Drive Folder

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

Block 10 - List Google Drive Folders

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

Block 11 - Upload File to Google Drive

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

Block 12 - Sticky Note5

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

Block 13 - Process in n8n1

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

Block 14 - Manual Trigger Execution

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

Block 15 - Create Google Drive Folder

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

3. Summary Table

Workflow Back up workflow JSON files to Google Drive using the n8n API
Complexity advanced
Nodes 15
Categories DevOps
Author Safa Khan
Published 14 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15724/15724.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 Back up workflow JSON files to Google Drive using the n8n API do?

Who’s it for This workflow is designed for n8n users who want an automated way to back up their workflows to Google Drive. It is useful for freelancers, developers, automation agencies, and teams m...

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.