AzCopy从文件共享复制到Blob,并在Blob名称中包含文件路径

时间:2018-10-24 17:35:35

标签: azure azure-blob-storage azcopy

我可以从具有子目录的共享中复制目录,以便Blob名称具有路径名吗?

\\ testshare \ July \ File1.txt

\\ testshare \ May \ File1.txt

\\ testshare \ June \ File3.txt

\\ testshare \ June \ Week3 \ File3.txt

在Blob容器中,我想拥有

7月/File1.text

May / File1.text

June / File3.txt

June / Week3 / File3.txt

1 个答案:

答案 0 :(得分:1)

没关系,默认情况下AZCopy会这样做。

AzCopy /目标:https://myblob.blob.core.windows.net/files /源:C:\ myfolder / DestKey:xzxzxzxzzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxz == / S