IT Ops

n8n Workflow Backup to Google Drive

Backs up every n8n workflow to Google Drive on a schedule, one subfolder per workflow, and only saves a new copy when a workflow has actually changed. A Google Sheet keeps the index.

The n8n Workflow Backup to Google Drive workflow on the n8n canvas, with its 16 nodes and connections
The workflow on the n8n canvas. Click to open it full size.

At a glance

Category
IT Ops
Nodes
16
Apps
Google Drive, Google Sheets
Price
Free
Download JSON
On this page

How it works

  1. On schedule, all workflows are fetched through the n8n API.
  2. Each workflow gets its own Drive subfolder, created if missing.
  3. The sheet is checked to see whether the workflow changed since the last backup.
  4. Changed or new workflows are saved as JSON files and the index is updated.

Use cases

  • Self-hosted n8n instances
  • Agencies managing client automations
  • Version history and disaster recovery

What you need

This workflow connects to these apps.

  • Google Drive
  • Google Sheets
  • n8n

You'll need an n8n instance, on n8n Cloud or self-hosted, and these credentials. Our credentials guide shows how to create each one.

  • Google Drive account
  • Google Sheets account
  • n8n account

Data setup

Create these tables with these exact column names before the first run.

TableColumns
Workflow Backup → Sheet1Google SheetsidNameLast BackupFolder linkLast Updated

Setup

  1. Download the JSON and import it into n8n with Import from File, or copy it and paste it onto an empty canvas. The import guide walks through both.
  2. Connect the credentials listed above.
  3. Point the Sheets, Airtable, Drive, and Slack nodes at your own files and channels.
  4. Replace placeholder emails, phone numbers, and form links with your own.
  5. Times use the America/New York timezone and dates use MM/DD/YYYY. Change them if you need to, then test and activate. The setup guide covers this step by step.

Nodes

NodeType
Loop Over DatasplitInBatches
Schedule TriggerscheduleTrigger
Get all n8n Workflown8n
Append row in sheetgoogleSheets
Store File in SubfoldergoogleDrive
Search SubfoldergoogleDrive
If Existsif
Create SubFoldergoogleDrive
Get n8n Filecode
Set Subfolder Idset
Append or update row in sheetgoogleSheets
If Updated Date Changedif
If Not Existsif
Get Flow RecordgoogleSheets
Get Existing WorkflowgoogleSheets

Frequently asked questions

Backs up every n8n workflow to Google Drive on a schedule, one subfolder per workflow, and only saves a new copy when a workflow has actually changed. A Google Sheet keeps the index. It's a 16-node n8n workflow.

An n8n instance, on n8n Cloud or self-hosted, and credentials for Google Drive, Google Sheets, and n8n. It uses only nodes that ship with n8n, so there's nothing else to install.

It works with 1 table in Google Sheets. Create it with the column names listed under Data setup on this page before the first run.

Download the JSON, then in n8n create a new workflow, open the menu in the top right, and choose Import from File. You can also copy the JSON and paste it onto an empty canvas.

Yes. It's free to download, import, and change, with no sign-up. You only pay for the apps it connects to, where those aren't free on your plan.

Keep exploring
  • n8n canvas of the AI Crop Advisory for Farmers workflow

    Agriculture27 nodes

    AI Crop Advisory for Farmers

    Gives farmers practical, AI-generated crop advice based on their soil, crop and live weather. Advice is delivered instantly on sign-up and refreshed daily over WhatsApp.

  • n8n canvas of the AI Email Classifier & Slack Router workflow

    AI Automation11 nodes

    AI Email Classifier & Slack Router

    Reads incoming emails, has AI classify each one (support, sales, billing, HR and so on) and notifies the right team on Slack straight away.