是否可以通过 AZ Copy 在 blob 存储上设置属性
Is it possible to set properties on blob storage via AZ Copy
我们有一个指向 blob 存储容器的 Azure CDN。我们通过 AZ Copy 定期上传新文件。
我可以通过多种方式设置它,例如https://docs.microsoft.com/nb-no/azure/cdn/cdn-manage-expiration-of-blob-content但不能批量设置。
是否可以通过 AzCopy 设置 Cache-Control property/meta 数据?
查看 AzCopy 参数 documentation,您似乎无法设置 Cache-Control 属性。
但是,Azure Data Movement Library 公开了一个 SetAttributesCallback,它允许您设置属性。
自 2019 年 5 月起,azcopy 支持设置 Cache-Control 属性
https://github.com/Azure/azure-storage-azcopy/releases/tag/v10.1.2
以上link对应的发布信息如下:
New features
- Headers for Content-Disposition, Content-Language and Cache-Control can now be set when uploading files to Blob Storage and to Azure Files. Run
azcopy copy --help
to see command line parameter
information, including those needed to set the new headers.
我们有一个指向 blob 存储容器的 Azure CDN。我们通过 AZ Copy 定期上传新文件。
我可以通过多种方式设置它,例如https://docs.microsoft.com/nb-no/azure/cdn/cdn-manage-expiration-of-blob-content但不能批量设置。
是否可以通过 AzCopy 设置 Cache-Control property/meta 数据?
查看 AzCopy 参数 documentation,您似乎无法设置 Cache-Control 属性。
但是,Azure Data Movement Library 公开了一个 SetAttributesCallback,它允许您设置属性。
自 2019 年 5 月起,azcopy 支持设置 Cache-Control 属性 https://github.com/Azure/azure-storage-azcopy/releases/tag/v10.1.2
以上link对应的发布信息如下:
New features
- Headers for Content-Disposition, Content-Language and Cache-Control can now be set when uploading files to Blob Storage and to Azure Files. Run
azcopy copy --help
to see command line parameter information, including those needed to set the new headers.