azure - Azure 存储表副本
问题描述
我在使用 azure AzCopy 时遇到问题。这是我的场景。我有 2 个存储帐户,我将其命名为 storage1 和 storage2。
Storage1 包含多个表中的一些重要数据,我想要做的是能够将 storage1 中的所有表复制到 storage2(有备份)。
我尝试了两种不同的方法:
- 复制
- Azure 数据工厂
由于Azure Data Factory
我没有任何特别的问题可以使它工作,我能够将所有 blob 从 storage1 移动到data Factory
但我无法移动表并且不知道这是否可以用 python 来完成。
我的AzCopy
运气为零。Blob Storage Data contributor
当我运行此命令时,我在 IAM 和终端中授予了自己权限:
azcopy cp 'https://storage1.table.core.windows.net/Table1' 'https://storage2[...]-Key'
我得到了权限错误。
在这个特定场景中,我希望能够使用 AzCopy,因为它比数据工厂更简单,因为我需要的只是将这些表从一个存储移动到另一个存储。
谁能帮助我了解我在 azCopy 上做错了什么?
编辑:这是我尝试使用 azcopy 复制表时的错误
INFO: The parameters you supplied were Source: 'https://storage1.table.core.windows.net/[SAS]' of type Local, and Destination: 'https://storage2.table.core.windows.net/[SAS]' of type Local
INFO: Based on the parameters supplied, a valid source-destination combination could not automatically be found. Please check the parameters you supplied. If they are correct, please specify an exact source and destination type using the --from-to switch. Valid values are two-word phases of the form BlobLocal, LocalBlob etc. Use the word 'Blob' for Blob Storage, 'Local' for the local file system, 'File' for Azure Files, and 'BlobFS' for ADLS Gen2. If you need a combination that is not supported yet, please log an issue on the AzCopy GitHub issues list.
failed to parse user input due to error: the inferred source/destination combination could not be identified, or is currently not supported
解决方案
如果要将所有存在的表是 abc 容器复制到 xyz 容器。使用简单的复制活动并在创建数据集时只需提供将所有内容(即所有表)复制到 xyz 容器的文件夹路径。
我想从第 30 分钟观看下面的视频。它将在您的场景中有所帮助。 https://youtu.be/m6wyB-Hm3j0
推荐阅读
- c# - 在未迁移第三方的情况下将 .net 项目迁移到 .net Core
- javascript - Laravel 使用 ajax 将多个复选框插入数据库
- django - 基于 Django url 的多数据库
- c - SHA1 消息摘要到纯文本
- ibm-cloud - 如何在 Bluemix 上为 Node-RED 安装 node-red-contrib-cep
- function - 是否可以远程调试预编译(不是 CSX)的 Azure Functions?
- r - 如何在 docker 中加快 R 包的安装速度
- hybris - “FacetSearchException:没有定义名为 'myBean' 的 bean”在 BackOffice 中访问 CS
- protocol-buffers - 使用 Flink 运行的 Apache Beam 抛出 NoSuchMethodError
- javascript - 如何编写一个 js 脚本来使表单中的数据导入无误