Copia de seguridad del flujo de trabajo

Intermedio

Este es unEngineering, IT Opsflujo de automatización del dominio deautomatización que contiene 12 nodos.Utiliza principalmente nodos como N8n, Limit, Filter, GoogleDrive, ConvertToFile. Respaldo automático de flujos de trabajo a Google Drive - exportar todos los flujos de trabajo automáticamente

Requisitos previos
  • Credenciales de API de Google Drive
Vista previa del flujo de trabajo
Visualización de las conexiones entre nodos, con soporte para zoom y panorámica
Exportar flujo de trabajo
Copie la siguiente configuración JSON en n8n para importar y usar este flujo de trabajo
{
  "id": "qNt1EP9LpXpmPsrR",
  "meta": {
    "instanceId": "740c1df6d3b1b6ea8a9d2223701f6904173f9e3cf7381cd181644b043420ba09",
    "templateCredsSetupCompleted": true
  },
  "name": "Workflow Backup copy",
  "tags": [],
  "nodes": [
    {
      "id": "8a1a1151-af5f-4143-8748-c5a7e7df41e0",
      "name": "Convertir a archivo",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        1000,
        220
      ],
      "parameters": {
        "options": {
          "format": true,
          "fileName": "={{ $json.name + \".json\" }} "
        },
        "operation": "toJson"
      },
      "typeVersion": 1.1
    },
    {
      "id": "2eeed47c-ab3e-4b8c-9cbc-4cbefa6fb59f",
      "name": "Activador programado",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        260
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "weeks"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "9fd17067-54c0-4d59-91c1-8d69d87bae6e",
      "name": "Filtro",
      "type": "n8n-nodes-base.filter",
      "position": [
        1340,
        0
      ],
      "parameters": {
        "options": {
          "ignoreCase": true
        },
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": false,
            "typeValidation": "loose"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "538fc29d-2693-4c62-9848-bdcaf8566909",
              "operator": {
                "type": "string",
                "operation": "notEquals"
              },
              "leftValue": "={{ $json.id }}",
              "rightValue": "={{ $('Create new folder').item.json.id }}"
            }
          ]
        },
        "looseTypeValidation": true
      },
      "typeVersion": 2.2
    },
    {
      "id": "632da5d2-eae3-4930-8024-6875d995ac7b",
      "name": "eliminar carpeta",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1560,
        0
      ],
      "parameters": {
        "options": {
          "deletePermanently": true
        },
        "resource": "folder",
        "operation": "deleteFolder",
        "folderNoRootId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $json.id }}"
        }
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "IjFafOCgIQMrz5cn",
          "name": "Google demo"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "23999fdb-5501-4c75-9359-a63d72036e51",
      "name": "Obtener carpetas",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1120,
        0
      ],
      "parameters": {
        "filter": {
          "folderId": {
            "__rl": true,
            "mode": "list",
            "value": ""
          }
        },
        "options": {},
        "resource": "fileFolder"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "IjFafOCgIQMrz5cn",
          "name": "Google demo"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "81ad6d55-c569-42e5-93a0-9a2549080749",
      "name": "Activador manual",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "db6e17c9-374a-4a14-9a83-97733becff11",
      "name": "Crear nueva carpeta",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        200,
        0
      ],
      "parameters": {
        "name": "=Workflow Backups {{ $now.format('cccc t dd-MM-yyyy') }}",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "options": {},
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "1DHzXsjyUvDJsZssbX_kgHHLrvls3-_jA",
          "cachedResultUrl": "https://drive.google.com/drive/folders/1DHzXsjyUvDJsZssbX_kgHHLrvls3-_jA",
          "cachedResultName": "backup n8n"
        },
        "resource": "folder"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "IjFafOCgIQMrz5cn",
          "name": "Google demo"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "393ac68c-f005-443c-ac5c-69679e0e3041",
      "name": "Bucle",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        600,
        0
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 3
    },
    {
      "id": "92f0685e-f093-40d0-ace0-523f97c4c1fe",
      "name": "Cargar flujo de trabajo",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1180,
        220
      ],
      "parameters": {
        "name": "={{ $('Loop ').item.json.name + \".json\" }}",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "options": {},
        "folderId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Create new folder').item.json.id }}"
        }
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "IjFafOCgIQMrz5cn",
          "name": "Google demo"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "63204c20-fb38-4459-a925-28c3cfb8bf78",
      "name": "Límite",
      "type": "n8n-nodes-base.limit",
      "position": [
        920,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "5f6b7108-e2f6-4e83-8644-6c6f96d22964",
      "name": "Obtener flujo de trabajo n8n",
      "type": "n8n-nodes-base.n8n",
      "position": [
        400,
        0
      ],
      "parameters": {
        "filters": {},
        "requestOptions": {}
      },
      "credentials": {
        "n8nApi": {
          "id": "Qdcuw7Z9agi62dkb",
          "name": "n8n demo"
        }
      },
      "retryOnFail": true,
      "typeVersion": 1,
      "alwaysOutputData": true
    },
    {
      "id": "11719b22-f8ed-45cc-946d-90393a6af706",
      "name": "Nota adhesiva",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1840,
        -340
      ],
      "parameters": {
        "color": 4,
        "width": 1320,
        "height": 1660,
        "content": "# 🔄 Workflow Backup for n8n → Google Drive\n\nAn automated system to back up all your n8n workflows and store them as `.json` files in Google Drive.  \nPerfect for creators, teams, and agencies who want to protect their work without manual effort.\n\n---\n\n## ✨ What this workflow does\n\n- Creates a new folder in Google Drive named `Workflow Backups [date]`\n- Fetches all workflows from your n8n instance via the `n8n API`\n- Converts each workflow into a `.json` file\n- Uploads the files to the created backup folder\n- (Optionally) Deletes old backup folders to keep things tidy\n- Can run manually or automatically (e.g., weekly)\n\n---\n\n## 🛠 Requirements\n\n- A Google account with access to Google Drive\n- Connected `Google Drive OAuth2` credentials in n8n\n- Active `n8n API credentials`\n- Enabled trigger: `Manual` or `Schedule`\n\n---\n\n## ⚙️ Installation Instructions\n\n1. **Import the workflow** (`Workflow_Backup_copy.json`) into your n8n instance\n2. **Set up credentials:**\n   - Replace `Google demo` with your own `Google Drive OAuth2` in the following nodes:\n     - `Create new folder`\n     - `Get folders`\n     - `Upload workflow`\n     - `delete folder`\n   - Replace `n8n demo` with your `n8n API` credentials in `Get n8n workflow`\n3. **Replace the folder ID** in the `Create new folder` node with the target backup folder on your Drive (`folderId`)\n4. **Optional:** Configure `Schedule Trigger` to run weekly or at your preferred interval\n\n---\n\n## 📦 Workflow Structure\n\n```\nManual/Schedule Trigger\n      ↓\nCreate new folder (Google Drive)\n      ↓\nGet n8n workflows (via API)\n      ↓\nLoop through workflows\n      ↓\nConvert to .json files\n      ↓\nUpload to Drive\n      ↓\n(Optional) Delete old backup folders\n```\n\n---\n\n## ✅ Tips\n\n- Add logic to retain only the latest X backups (e.g., last 3).\n- The workflow can run fully hands-free once scheduled.\n- Want to store files elsewhere? Swap out the upload node for Dropbox, S3, etc.\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "timezone": "Europe/Warsaw",
    "callerPolicy": "workflowsFromSameOwner",
    "executionOrder": "v1"
  },
  "versionId": "b5965021-a283-4c62-bf51-b9be920327c6",
  "connections": {
    "63204c20-fb38-4459-a925-28c3cfb8bf78": {
      "main": [
        [
          {
            "node": "23999fdb-5501-4c75-9359-a63d72036e51",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "393ac68c-f005-443c-ac5c-69679e0e3041": {
      "main": [
        [
          {
            "node": "63204c20-fb38-4459-a925-28c3cfb8bf78",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "8a1a1151-af5f-4143-8748-c5a7e7df41e0",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9fd17067-54c0-4d59-91c1-8d69d87bae6e": {
      "main": [
        [
          {
            "node": "632da5d2-eae3-4930-8024-6875d995ac7b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "23999fdb-5501-4c75-9359-a63d72036e51": {
      "main": [
        [
          {
            "node": "9fd17067-54c0-4d59-91c1-8d69d87bae6e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "81ad6d55-c569-42e5-93a0-9a2549080749": {
      "main": [
        [
          {
            "node": "db6e17c9-374a-4a14-9a83-97733becff11",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8a1a1151-af5f-4143-8748-c5a7e7df41e0": {
      "main": [
        [
          {
            "node": "92f0685e-f093-40d0-ace0-523f97c4c1fe",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "92f0685e-f093-40d0-ace0-523f97c4c1fe": {
      "main": [
        [
          {
            "node": "393ac68c-f005-443c-ac5c-69679e0e3041",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5f6b7108-e2f6-4e83-8644-6c6f96d22964": {
      "main": [
        [
          {
            "node": "393ac68c-f005-443c-ac5c-69679e0e3041",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2eeed47c-ab3e-4b8c-9cbc-4cbefa6fb59f": {
      "main": [
        [
          {
            "node": "db6e17c9-374a-4a14-9a83-97733becff11",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "db6e17c9-374a-4a14-9a83-97733becff11": {
      "main": [
        [
          {
            "node": "5f6b7108-e2f6-4e83-8644-6c6f96d22964",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Preguntas frecuentes

¿Cómo usar este flujo de trabajo?

Copie el código de configuración JSON de arriba, cree un nuevo flujo de trabajo en su instancia de n8n y seleccione "Importar desde JSON", pegue la configuración y luego modifique la configuración de credenciales según sea necesario.

¿En qué escenarios es adecuado este flujo de trabajo?

Intermedio - Ingeniería, Operaciones de TI

¿Es de pago?

Este flujo de trabajo es completamente gratuito, puede importarlo y usarlo directamente. Sin embargo, tenga en cuenta que los servicios de terceros utilizados en el flujo de trabajo (como la API de OpenAI) pueden requerir un pago por su cuenta.

Información del flujo de trabajo
Nivel de dificultad
Intermedio
Número de nodos12
Categoría2
Tipos de nodos9
Descripción de la dificultad

Adecuado para usuarios con experiencia intermedia, flujos de trabajo de complejidad media con 6-15 nodos

Autor
LukaszB

LukaszB

@lukaszb

AI Automation Expert | Web & Mobile App Integrator With 2+ years of experience, I build smart automations, web & mobile app workflows, and scalable platforms using tools like n8n, Make, and more. I help businesses reduce operational costs, save time, and scale faster with AI-powered solutions. For business enquiries, send me an email at kontakt@lumizone.pl

Enlaces externos
Ver en n8n.io

Compartir este flujo de trabajo

Categorías

Categorías: 34