使用AzCopy将表从azure复制到本地存储 [英] Copy table from azure to local storage using AzCopy

查看:105
本文介绍了使用AzCopy将表从azure复制到本地存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将myTable从azure复制到本地仿真器

AzCopy.exe/源: https://teststorage.table.core .../目的地: http://127.0.0.1:10002/devstoreaccount1/myTable /sourceKey:VUGXYOrFUG8 + f7KYt5etrjB4B/3QbwWiJgLZ6wXCdx6p + bV/GTfCLJshpWQvFZNChXtPbR2llqvbXIB9qucSJQ ==/destkey:Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOd

我有此错误:命令的语法不正确. Azure表服务或AzCopy不支持将数据从一个表复制到另一个表.

有人可以告诉我我的命令在哪里吗?

解决方案

到目前为止,AzCopy不支持将表直接复制到表中.要解决此问题,您可以运行两个命令,首先将源表导出到local或blob,然后再导回到目标表.

顺便说一句,/S是仅适用于Blob/文件复制的选项,您不能为表复制指定它.

AzCopy.exe/源: https://youraccount1.table.core.windows.net/srctable /SourceKey:key1/Dest:D:\ LocalFolder/Manifest:您的文件名/SplitSize:128

AzCopy.exe/Source:D:\ LocalFolder/Dest: http://127.0.0.1:10002/devstoreaccount1/desttable /DestType:Table/DestKey:key2/Manifest:您的文件名/EntityOperation:InsertOrReplace

I am trying to copy myTable from azure to local emulator

AzCopy.exe /Source:https://teststorage.table.core... /Dest:http://127.0.0.1:10002/devstoreaccount1/myTable /sourceKey:VUGXYOrFUG8+f7KYt5etrjB4B/3QbwWiJgLZ6wXCdx6p+bV/GTfCLJshpWQvFZNChXtPbR2llqvbXIB9qucSJQ== /destkey:Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw== /destType:table /S

I have this error : The syntax of the command is incorrect. Copying data from one table to another is not supported by either the Azure Table service or AzCopy.

Can anyone tell me where is the issue with my command ?

解决方案

So far AzCopy doesn't support copying table to table directly. To work around it, you can run two commands to firstly export the source table to local or blob, and then import back to the target table.

BTW, /S is an option only available for blob/file copying, you can't specify it for table copying.

AzCopy.exe /Source:https://youraccount1.table.core.windows.net/srctable /SourceKey:key1 /Dest:D:\LocalFolder /Manifest:yourfilename /SplitSize:128

AzCopy.exe /Source:D:\LocalFolder /Dest:http://127.0.0.1:10002/devstoreaccount1/desttable /DestType:Table /DestKey:key2 /Manifest:yourfilename /EntityOperation:InsertOrReplace

这篇关于使用AzCopy将表从azure复制到本地存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆