Description
openedon Jul 9, 2024
Describe the bug
When using [az storage azcopy blob download] to download a file in blob storage, it would be nice to be able to set the --overwrite
parameter of azcopy to be "ifSourceNewer", which will only copy the file if the source is newer than the destination.
--overwrite (string) Overwrite the conflicting files and blobs at the destination if this flag is set to true. (default 'true') Possible values include 'true', 'false', 'prompt', and 'ifSourceNewer'. For destinations that support folders, conflicting folder-level properties are overwritten if this flag is 'true' or if a positive response is provided to the prompt. (default "true")
Related command
az storage azcopy blob download
Errors
NA
Issue script & Debug output
NA
Expected behavior
azcopy's --overwrite
flag is made available as a parameter of az storage azcopy blob download
Environment Summary
az --version
azure-cli 2.61.0 *
core 2.61.0 *
telemetry 1.1.0
Extensions:
account 0.2.5
application-insights 1.2.1
azure-devops 1.0.0
containerapp 0.3.50
cosmosdb-preview 1.0.0
interactive 0.5.3
storage-preview 1.0.0b1
Dependencies:
msal 1.28.0
azure-mgmt-resource 23.1.1
Additional context
I know this extension is in beta. Just passing along my preference for the future of this extension. Thanks!