【问题标题】:Azcopy copy - Exclude a folder and the files inside itAzcopy 复制 - 排除文件夹及其中的文件
【发布时间】:2021-10-23 21:44:41
【问题描述】:

我想复制 Drive H: 中的所有文件夹和文件,但文件夹“Recent”除外。 “最近”文件夹中有多个文件和文件夹。

The Microsoft Documentation--exclude-path,但表示不能包含通配符。那么下面的代码会实现复制所有文件和文件夹的目标吗?

azcopy cp 'H:\*' 'https://storage.blob.core.windows.net/folderA?saskey' --exclude-path 'H:\Recent ' --recursive

或者还有其他方法可以实现吗?

【问题讨论】:

    标签: azure azure-storage azcopy


    【解决方案1】:

    同步的排除路径现在在 10.3.3 中 https://github.com/Azure/azure-storage-azcopy/issues/356

    示例语法

    "https://storageaccount.blob.core.windows.net/folder1/?sv=2019-02-02&ss=bfqt&srt=sco&sp=rwdlacup&se=2020-01-01T16:07:51Z&st=2019-01-01T08:07:51Z&spr=https&sig=SIG" --exclude-path f1;f2 f3;f4
    

    参考-https://github.com/Azure/azure-storage-azcopy/issues/796

    【讨论】:

      猜你喜欢
      • 2020-09-29
      • 2021-04-27
      • 2016-07-17
      • 1970-01-01
      • 2016-02-04
      • 2019-02-16
      • 1970-01-01
      • 1970-01-01
      • 2011-01-12
      相关资源
      最近更新 更多