gpt4 book ai didi

powershell - Azure 存储 : use AzCopy. exe 将文件夹从 Blob 存储复制到另一个存储帐户

转载 作者:行者123 更新时间:2023-12-02 23:42:14 25 4
gpt4 key购买 nike

使用 AzCopy.exe,我能够成功复制整个容器。但是,我无法弄清楚如何复制名称包含文件夹结构的 blob。我尝试过以下方法:

.\AzCopy.exe /Source:https://sourceaccount.blob.core.windows.net/container /Dest:https://destaccount.blob.core.windows.net/container /SourceKey:sourceKey== /DestKey:destKey== /S /Pattern:CorruptZips/2013/6

同时还将/Pattern: 更改为:

  • /模式:CorruptZips/2013/6/*
  • /Pattern:CorruptZips/2013/6/。
  • /模式:CorruptZips/2013/6/

一切都只是说复制了零条记录。这可以完成还是仅用于容器/文件复制?谢谢。

最佳答案

@naspinski,还有另一个名为 Azure Data Factory 的工具,它可以帮助将文件夹从 Blob 存储帐户复制到另一个存储帐户。请引用文章Move data to and from Azure Blob using Azure Data Factory了解它并按照以下步骤进行操作。

  1. 在 Azure 上创建数据工厂 portal .
  2. 点击如下复制数据按钮,进入powercopytool界面,按照提示逐步复制文件夹。

enter image description here

enter image description here

关于powershell - Azure 存储 : use AzCopy. exe 将文件夹从 Blob 存储复制到另一个存储帐户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38513672/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com