8
n8n 中文网amn8n.com

FTP 到云同步

中级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 9 个节点。主要使用 Ftp, GoogleDrive, SplitInBatches, ScheduleTrigger 等节点。 通过批处理自动将 FTP 文件传输到 Google Drive

前置要求
  • Google Drive API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "name": "FTP 到云同步",
  "nodes": [
    {
      "id": "262d1e91-d950-41a4-8a27-afeb44c9744d",
      "name": "⏯️ 计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -144,
        64
      ],
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "44decf50-8cb4-4eba-bd60-67f963e1d939",
      "name": "📂 从 FTP 列出文件",
      "type": "n8n-nodes-base.ftp",
      "position": [
        80,
        64
      ],
      "parameters": {
        "path": "/path/to/your/files",
        "operation": "list"
      },
      "credentials": {
        "ftp": "ftp_credentials"
      },
      "typeVersion": 1
    },
    {
      "id": "821ff817-5e79-4d81-8fc5-980c76517d87",
      "name": "🔀 批量文件",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        304,
        64
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 3
    },
    {
      "id": "7535c279-523e-4d07-bc8d-de3424456236",
      "name": "⬇️ 从 FTP 下载文件",
      "type": "n8n-nodes-base.ftp",
      "position": [
        528,
        -16
      ],
      "parameters": {
        "path": "={{ $json.name }}",
        "options": {}
      },
      "credentials": {
        "ftp": "ftp_credentials"
      },
      "typeVersion": 1
    },
    {
      "id": "b6f0df47-0de0-4636-8939-1fbe748da310",
      "name": "☁️ 上传到 Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        752,
        64
      ],
      "parameters": {
        "name": "={{ $json.name }}",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "options": {},
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "root",
          "cachedResultName": "/ (Root folder)"
        }
      },
      "credentials": {
        "googleDriveOAuth2Api": "google_drive_credentials"
      },
      "typeVersion": 3
    },
    {
      "id": "a62179dc-9d84-42b9-953b-0d584763b1bc",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -208,
        -272
      ],
      "parameters": {
        "color": 4,
        "width": 448,
        "height": 544,
        "content": "## 1. 触发器和文件列表"
      },
      "typeVersion": 1
    },
    {
      "id": "1cdca185-0cc4-4a2d-97cd-7a467d4df82b",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        256,
        -272
      ],
      "parameters": {
        "color": 3,
        "width": 208,
        "height": 544,
        "content": "## 2. 批量处理设置"
      },
      "typeVersion": 1
    },
    {
      "id": "333bf0b6-aeb7-422a-83ae-e2fa5d448814",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        -272
      ],
      "parameters": {
        "color": 5,
        "height": 544,
        "content": "## 3. 文件处理"
      },
      "typeVersion": 1
    },
    {
      "id": "58997636-96c2-4f25-9795-3f8fbc83d293",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        736,
        -272
      ],
      "parameters": {
        "width": 192,
        "height": 544,
        "content": "## 4. 云上传"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "connections": {
    "🔀 Batch Files": {
      "main": [
        [],
        [
          {
            "node": "⬇️ Download File from FTP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "⏯️ Schedule Trigger": {
      "main": [
        [
          {
            "node": "📂 List Files from FTP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📂 List Files from FTP": {
      "main": [
        [
          {
            "node": "🔀 Batch Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "☁️ Upload to Google Drive": {
      "main": [
        [
          {
            "node": "🔀 Batch Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "⬇️ Download File from FTP": {
      "main": [
        [
          {
            "node": "☁️ Upload to Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 内容创作, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量9
分类2
节点类型5
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Avkash Kakdiya

Avkash Kakdiya

@itechnotion

🚀 Founder of iTechNotion — we build custom AI-powered automation workflows for startups, agencies, and founders. 💡 Specializing in agentic AI systems, content automation, sales funnels, and digital workers. 🔧 14+ years in tech | Building scalable no-code/low-code solutions using n8n, OpenAI, and other API-first tools. 📬 Let’s automate what slows you down.

外部链接
在 n8n.io 查看

分享此工作流