8
n8n 中文网amn8n.com

自动AWS S3到MinIO备份

中级

这是一个File Management, Multimodal AI领域的自动化工作流,包含 8 个节点。主要使用 S3, AwsS3, SplitOut, ScheduleTrigger 等节点。 自动化AWS S3到MinIO对象备份,含调度功能

前置要求
  • AWS Access Key 和 Secret
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "oDayLpms5q2aFCKw",
  "meta": {
    "instanceId": "d62d7a3fb314923e2cdedec19423e9669591b9c9c87901bc9332b7c59c101257"
  },
  "name": "自动 AWS S3 到 MinIO 备份",
  "tags": [],
  "nodes": [
    {
      "id": "8bfa470e-87dc-43eb-96ac-b5e382bae27c",
      "name": "便签37",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -112,
        624
      ],
      "parameters": {
        "color": 5,
        "width": 192,
        "height": 272,
        "content": "### 根据您的需求配置计划触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "50efb63f-a9bd-4999-b3f8-70bed12adc26",
      "name": "路径提取",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        400,
        736
      ],
      "parameters": {
        "options": {},
        "fieldToSplitOut": "Key"
      },
      "typeVersion": 1
    },
    {
      "id": "4689dfef-ac4c-4c99-a65d-a4897cf7fd13",
      "name": "对象列表",
      "type": "n8n-nodes-base.awsS3",
      "position": [
        176,
        736
      ],
      "parameters": {
        "options": {
          "folderKey": "folder/"
        },
        "operation": "getAll",
        "returnAll": true,
        "bucketName": "yourBucket"
      },
      "credentials": {
        "aws": {
          "id": "MSMXVqVXTE3alClo",
          "name": "AWS account"
        }
      },
      "retryOnFail": true,
      "typeVersion": 2,
      "waitBetweenTries": 5000
    },
    {
      "id": "c6e517b0-65a0-4186-bcca-bbc718cfd7a4",
      "name": "对象下载",
      "type": "n8n-nodes-base.awsS3",
      "position": [
        624,
        736
      ],
      "parameters": {
        "fileKey": "={{ $json.Key }}",
        "bucketName": "yourBucket"
      },
      "credentials": {
        "aws": {
          "id": "MSMXVqVXTE3alClo",
          "name": "AWS account"
        }
      },
      "retryOnFail": true,
      "typeVersion": 2,
      "waitBetweenTries": 5000
    },
    {
      "id": "e3cabe9c-9ec8-4ac9-bc9f-388fe795ab78",
      "name": "定时触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -64,
        736
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 2,
              "triggerAtMinute": 15
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "cefb5737-2946-4834-b8ed-5603c6af2d32",
      "name": "上传对象到本地 MinIO",
      "type": "n8n-nodes-base.s3",
      "position": [
        848,
        736
      ],
      "parameters": {
        "fileName": "={{ $json.Key }}",
        "operation": "upload",
        "bucketName": "yourBucket",
        "additionalFields": {
          "parentFolderKey": "DestinationFolder"
        }
      },
      "credentials": {
        "s3": {
          "id": "p1G9A4UuSXaIH0xy",
          "name": "MinIO S3"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "16138a32-5c59-4aed-b324-6e9c12d33259",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        784,
        624
      ],
      "parameters": {
        "color": 5,
        "width": 224,
        "height": 288,
        "content": "### 链接您的 MinIO 存储桶,别忘了指定备份要存放的文件夹!"
      },
      "typeVersion": 1
    },
    {
      "id": "4502b0cb-9fe7-4901-93d9-993714a912c6",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        112,
        448
      ],
      "parameters": {
        "color": 4,
        "width": 640,
        "height": 256,
        "content": "### 您需要配置对需要备份的 AWS S3 存储桶的访问权限(包含端点 URL、访问密钥和密钥),以及在您的网络上运行的 MinIO 服务(要在本地使用 S3 节点配置,请使用基于您服务 IP 的 URL (http://XXX.XXX.XXX.XXX:9000) 以及访问密钥和密钥)。此外,在 N8N 的凭据部分,如果 MinIO 在本地网络运行,请勾选\"强制路径样式\"和\"忽略 SSL 问题(不安全)\"。您在使用 Proxmox VE 吗?创建一个 MinIO LXC 容器:https://community-scripts.github.io/ProxmoxVE/scripts?id=minio,这样更简单!"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "a69e97d1-1de4-4ed1-b602-57956aff57b7",
  "connections": {
    "Objects Listing": {
      "main": [
        [
          {
            "node": "Path Extraction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Path Extraction": {
      "main": [
        [
          {
            "node": "Objects Download",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Objects Download": {
      "main": [
        [
          {
            "node": "Upload objects on local MinIO",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Objects Listing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 文件管理, 多模态 AI

需要付费吗?

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

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

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

作者
sienna

sienna

@sienna

French's leading offline data preservation startup ! Cloud to Tape, Data Integrity assurance, multi-source backup, ... all automated with N8N ;)

外部链接
在 n8n.io 查看

分享此工作流