【问题标题】:Azure container copy only changesAzure 容器副本仅更改
【发布时间】:2021-04-10 07:41:52
【问题描述】:

我想从 github repos 更新静态网站资产。 documentation 建议使用基于

的操作
az storage blob upload-batch --account-name <STORAGE_ACCOUNT_NAME> -d '$web' -s .

如果我认为这是正确的,则无论更改如何,都会复制所有文件。即使只有一个文件被更改。是否可以只传输已更改的文件?就像 rsync 一样。

否则我会尝试根据 git 历史来判断更改的文件并仅传输它们。如果您知道这方面的现有解决方案,也请回答。

【问题讨论】:

    标签: azure-web-app-service azure-blob-storage azure-static-web-app


    【解决方案1】:
    【解决方案2】:

    根据@4c74356b41的建议,我发现上面提到的工具最近被集成到了az工具中。

    可以和az storage blob upload-batch一样使用。基本命令是: az storage blob sync

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-12-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-09-27
      • 1970-01-01
      • 2021-02-13
      相关资源
      最近更新 更多