Skip to main content

Automated n8n workflow backup system with Google Drive and archiving

Workflow preview

Workflow preview
100%
Automated n8n workflow backup system with Google Drive and archiving preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Click here to access this Workflow for free . Automatically save and archive your workflows This workflow pr...

Best for

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

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.if, n8n-nodes-base.stickynote, n8n-nodes-base.googledrive, n8n-nodes-base.n8n, n8n-nodes-base.converttofile

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automated n8n workflow backup system with Google Drive and archiving
Workflow name
Automated n8n workflow backup system with Google Drive and archiving

Click here to access this Workflow for free.


Automatically save and archive your workflows

This workflow provides a fully automated system for backing up your n8n workflows to Google Drive. It runs on a schedule (which you can customize) and saves each workflow as a .json file, named after the workflow itself. All active workflows are backed up by default and stored in a specified Google Drive folder of your choice.

A special feature of this workflow is its ability to archive and clean up old workflows. If you tag a workflow with ARCHIVE (case-sensitive), the workflow will be backed up into a designated Archive subfolder inside your main Google Drive folder — and then automatically deleted from your n8n instance. This keeps your workspace clean and reduces clutter while ensuring everything is safely stored.

Requirements

  • A Google Drive account connected to n8n (via OAuth2 or preferred method)
  • An n8n instance with access to your workflows
  • A folder in Google Drive for storing backups
    • Inside this folder, create a subfolder named Archive
  • Folder IDs for both the main and archive folders (Find it in folder's URL e.g. https://drive.google.com/drive/u/0/folders/**1F7Exr2xkZQFvmHmjdFD43K0jfd**)

Setup

  1. In your Google Drive, create a main folder for storing backups.
  2. Inside it, create a subfolder called Archive.
  3. Retrieve the folder IDs for both folders
  4. In n8n, connect your Google Drive credentials.
  5. Open the workflow and insert the folder IDs in the appropriate nodes.
  6. Optionally, edit the schedule trigger to set your preferred backup frequency.

Usage

Once configured, the workflow will:

  • Run automatically on the defined schedule
  • Back up all existing workflows into your Drive
  • For workflows tagged with ARCHIVE:
    • Save them into the Archive subfolder
    • Delete them from your n8n instance

The workflow ensures your automation logic is safely versioned, with optional cleanup for outdated or unused flows.

Customization

You can modify the schedule to run daily, weekly, or at any custom interval using the built-in Cron node.

You can also change the folder structure or naming conventions in the Google Drive nodes to match your personal or team preferences.

Workflows are archived only if they are explicitly tagged with ARCHIVE — this tag is case-sensitive.


If you need any help, or have any question, feel free to come discuss about it on Telegram

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 - Schedule Trigger

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

Block 2 - If

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

Block 3 - Sticky Note9

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

Block 4 - Sticky Note2

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

Block 5 - Create to date folder

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

Block 6 - GET Workflows

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

Block 7 - Sticky Note

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

Block 8 - Convert to JSON

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

Block 9 - Convert to JSON'

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

Block 10 - Save 'ARCHIVE' Workflows

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

Block 11 - Save all other Workflows

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

Block 12 - Delete 'ARCHIVE' Workflows

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

Block 13 - Sticky Note3

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

Block 14 - Sticky Note1

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

Block 15 - Sticky Note4

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

Block 16 - Sticky Note5

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

Block 17 - Sticky Note6

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

3. Summary Table

Workflow Automated n8n workflow backup system with Google Drive and archiving
Complexity advanced
Nodes 17
Categories DevOps
Author Theo Marcadet
Published 15 Apr 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3559/3559.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 Automated n8n workflow backup system with Google Drive and archiving do?

Click here to access this Workflow for free . Automatically save and archive your workflows This workflow pr...

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.