{
  "name": "Restore and recover n8n credentials from Google Drive backups with duplication protection",
  "nodes": [
    {
      "id": "60aa7e22-1d8a-4d93-864a-3f0f4f01418a",
      "name": "Convert Files To JSON",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        920,
        -40
      ]
    },
    {
      "id": "6ea6ffa1-ee03-4cb5-ba7a-55c30b5774f1",
      "name": "Check For Skipped Credentials",
      "type": "n8n-nodes-base.if",
      "position": [
        1740,
        -20
      ]
    },
    {
      "id": "460c8e94-5375-4d26-ac22-12b3fe1bbbd1",
      "name": "Restore N8n Credentials",
      "type": "n8n-nodes-base.n8n",
      "position": [
        1960,
        0
      ]
    },
    {
      "id": "70c258f9-91eb-4fae-af40-077e50522452",
      "name": "Google Drive Download File",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        720,
        -40
      ]
    },
    {
      "id": "089faa43-cb45-4daa-baea-770bd82d79fc",
      "name": "Google Drive Get Credentials File",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        520,
        -40
      ]
    },
    {
      "id": "254aa95c-cde9-463e-9baa-d2662787a848",
      "name": "Execute Command Get All Cridentials",
      "type": "n8n-nodes-base.executeCommand",
      "position": [
        -100,
        -40
      ]
    },
    {
      "id": "59d99f04-3b55-4b7a-b237-c2125933589f",
      "name": "JSON Formatting Data",
      "type": "n8n-nodes-base.code",
      "position": [
        100,
        -40
      ]
    },
    {
      "id": "1a2a5b3f-6440-41d0-b840-ef19540fd2ae",
      "name": "Aggregate Cridentials",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        300,
        -40
      ]
    },
    {
      "id": "8d62c789-3bf2-48a7-8ac8-9df721b133d0",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1120,
        -40
      ]
    },
    {
      "id": "f4f6b751-78f9-48b7-9a5d-85466f134556",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1520,
        -40
      ]
    },
    {
      "id": "ab6eddef-6aaf-4ef8-a3a9-a2a2e3092565",
      "name": "Split Out1",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1320,
        -40
      ]
    },
    {
      "id": "edd4e9fd-36d9-4572-add7-5fd0d29f4ec8",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        -120
      ],
      "parameters": {
        "width": 2591,
        "height": 372,
        "content": "## Import Credentials To N8n"
      }
    },
    {
      "id": "cb46ba37-1171-488e-a8fc-943e90d5103e",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        2180,
        0
      ]
    },
    {
      "id": "82a3b7e8-7079-4ef5-bc5c-d9fce0f1c1d7",
      "name": "On Click Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -520,
        -40
      ]
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Split Out1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out1": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Check For Skipped Credentials",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On Click Trigger": {
      "main": [
        [
          {
            "node": "Execute Command Get All Cridentials",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "JSON Formatting Data": {
      "main": [
        [
          {
            "node": "Aggregate Cridentials",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Cridentials": {
      "main": [
        [
          {
            "node": "Google Drive Get Credentials File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Files To JSON": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Restore N8n Credentials": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive Download File": {
      "main": [
        [
          {
            "node": "Convert Files To JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check For Skipped Credentials": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Restore N8n Credentials",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive Get Credentials File": {
      "main": [
        [
          {
            "node": "Google Drive Download File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Execute Command Get All Cridentials": {
      "main": [
        [
          {
            "node": "JSON Formatting Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}