{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "c92f4d85-fd92-48ff-afc3-159b54ef8d54",
      "name": "Daily Backup Schedule (2 AM)",
      "type": "n8n-nodes-base.cron",
      "position": [
        -80,
        16
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "fda053c6-5faa-4a13-b49d-6eca379f8a14",
      "name": "Read Google Sheet Data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        352,
        16
      ],
      "parameters": {
        "operation": "getAll",
        "documentId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_SOURCE_GOOGLE_SHEET_ID"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.6
    },
    {
      "id": "65ac2d1d-d51a-4193-b31b-fd62008af926",
      "name": "Upload Backup to Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        576,
        16
      ],
      "parameters": {
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "options": {},
        "folderId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_DESTINATION_GOOGLE_DRIVE_FOLDER_ID"
        }
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "23e8110e-a5ae-4265-aec2-24fed16b6f05",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        736,
        -384
      ],
      "parameters": {
        "height": 720,
        "content": "## Setup Steps\n\nTo get this workflow up and running, follow these instructions:\n\nStep 1: Create Google Sheets and Google Drive Credentials in n8n\n\nIn your n8n instance, go to Credentials in the left sidebar.\n\nEnsure you have a \"Google Sheets OAuth2 API\" credential set up. If not, create one.\n\nEnsure you have a \"Google Drive OAuth2 API\" credential set up. If not, create one.\n\nMake note of their Credential Names.\n\nStep 2: Prepare Your Google Sheet and Drive Folder\n\nSource Google Sheet: Identify the Google Sheet you want to back up. Copy its Document ID (from the URL). Note the Sheet Name (or GID) of the specific tab you want to back up.\n\nDestination Google Drive Folder: Go to your Google Drive (drive.google.com). Create a new folder for your backups (e.g., Google Sheets Backups). Copy the Folder ID from its URL.\n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "c7ab73c2-82e3-4325-a2f6-6be147c3f2f6",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -336,
        -336
      ],
      "parameters": {
        "height": 688,
        "content": "## Configure the Nodes\n\n\nRead Google Sheet Data Node:\n\nSelect your Google Sheets credential.\n\nReplace YOUR_SOURCE_GOOGLE_SHEET_ID with the ID of the Google Sheet you want to back up.\n\nReplace Sheet1 with the exact name of the tab you want to back up.\n\nUpload Backup to Google Drive Node:\n\nSelect your Google Drive credential.\n\nReplace YOUR_DESTINATION_GOOGLE_DRIVE_FOLDER_ID with the ID of the Google Drive folder where you want to store backups.\n\nFile Type: The fileType is set to csv. You can change this to xlsx if you prefer an Excel format for the backup (though CSV is often simpler for raw data backups).\n\nStep 5: Activate and Test the Workflow\n\nClick the \"Activate\" toggle button.\n\nTo test immediately, click \"Execute Workflow\".\n\nCheck your Google Drive backup folder. A new file named something like backup_Sheet1_2025-07-26.csv should appear.\n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "ef4e8c84-1992-49a1-977f-3cb557e784b6",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        -240
      ],
      "parameters": {
        "height": 416,
        "content": "## Scheduled Google Sheets Data Backup to Google Drive\n\n**Author:  David Olusola** \nThis workflow regularly backs up a Google Sheet by exporting its data and saving it as a new file (CSV or XLSX) in a specified folder within your Google Drive. This ensures data redundancy and historical versions.\n\nUse Case: Critical business data backup, audit trails, historical data snapshots."
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Read Google Sheet Data": {
      "main": [
        [
          {
            "node": "Upload Backup to Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Backup Schedule (2 AM)": {
      "main": [
        [
          {
            "node": "Read Google Sheet Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}