将文件从 AWS S3 复制到 Azure 存储存档层
Copy files from AWS S3 to Azure storage archive tier
我正在尝试将文件从 AWS S3 直接复制到 Azure 存储存档访问层。使用 azcopy
我可以将文件从 S3 复制到 Azure 但是当使用 --block-blob-tier Archive
标志时我遇到了错误:
failed to parse user input due to error: blob-tier is not supported while copying from sevice to service
我能找到的解决此问题的唯一方法是在本地下载文件然后上传到 Azure,或者在上传后更改访问层。第一个是更好的解决方案,因为第二个是成本的两倍(更改层时支付写入操作费用)。有没有人有其他选择或知道为什么 azcopy
不支持这个?
无需将文件从 S3 下载到本地计算机,然后将其上传回 Azure 存储,只需将文件从 S3 复制到 Azure 存储,而无需显式设置 blob 访问层。生成的 blob 的访问层将为 Hot
。复制操作成功完成后,您可以更改访问层。
这种方法的优点是复制直接发生在 S3 和 Azure 存储之间。但是,此过程是异步的,在启动访问层更改操作之前,您必须等待复制操作完成(而不是仅仅接受它)。
更新
如果从成本角度考虑,直接从 S3 复制到 Azure Blob 存储然后更改访问层对您来说不切实际,您可以从 S3 下载对象并直接在 Azure Blob 存储存档层中上传。此功能在撰写本文时处于预览状态 post。此功能在 Storage REST API 版本 2019-02-02 中可用。来自 release notes link
:
The Copy Blob, Put Block List, and Put Blob APIs support the
x-ms-access-tier header for Block Blobs, to set the tier on the result
without needing a second API call.
您可以使用 Flexify.io 门户,您需要在其中添加 s3 存储桶凭据和 azure blob 存储和密钥,然后允许从 s3 复制到块,反之亦然。甚至数据移动是
我正在尝试将文件从 AWS S3 直接复制到 Azure 存储存档访问层。使用 azcopy
我可以将文件从 S3 复制到 Azure 但是当使用 --block-blob-tier Archive
标志时我遇到了错误:
failed to parse user input due to error: blob-tier is not supported while copying from sevice to service
我能找到的解决此问题的唯一方法是在本地下载文件然后上传到 Azure,或者在上传后更改访问层。第一个是更好的解决方案,因为第二个是成本的两倍(更改层时支付写入操作费用)。有没有人有其他选择或知道为什么 azcopy
不支持这个?
无需将文件从 S3 下载到本地计算机,然后将其上传回 Azure 存储,只需将文件从 S3 复制到 Azure 存储,而无需显式设置 blob 访问层。生成的 blob 的访问层将为 Hot
。复制操作成功完成后,您可以更改访问层。
这种方法的优点是复制直接发生在 S3 和 Azure 存储之间。但是,此过程是异步的,在启动访问层更改操作之前,您必须等待复制操作完成(而不是仅仅接受它)。
更新
如果从成本角度考虑,直接从 S3 复制到 Azure Blob 存储然后更改访问层对您来说不切实际,您可以从 S3 下载对象并直接在 Azure Blob 存储存档层中上传。此功能在撰写本文时处于预览状态 post。此功能在 Storage REST API 版本 2019-02-02 中可用。来自 release notes link
:
The Copy Blob, Put Block List, and Put Blob APIs support the x-ms-access-tier header for Block Blobs, to set the tier on the result without needing a second API call.
您可以使用 Flexify.io 门户,您需要在其中添加 s3 存储桶凭据和 azure blob 存储和密钥,然后允许从 s3 复制到块,反之亦然。甚至数据移动是