问题
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 ?
回答1:
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
来源:https://stackoverflow.com/questions/35724147/copy-table-from-azure-to-local-storage-using-azcopy