-
Notifications
You must be signed in to change notification settings - Fork 1.5k
az storage azcopy blob sync: allow setting of --delete-destination #3103
Copy link
Copy link
Open
Labels
Storagefeature-requestThis issue requires a new behavior in the product in order be resolved.This issue requires a new behavior in the product in order be resolved.
Milestone
Description
Extension name
storage-preview
Description
azure-cli-extensions/src/storage-preview/azext_storage_preview/operations/azcopy.py
Lines 46 to 48 in 902e9bc
| def storage_blob_sync(cmd, client, source, destination): | |
| azcopy = _azcopy_blob_client(cmd, client) | |
| azcopy.sync(source, _add_url_sas(destination, azcopy.creds.sas_token), flags=['--delete-destination=true']) |
Having it set to true is what I need in my use case, but (a) some people may need false, and (b) false is the default in plain azcopy.
This should be added as an optional flag to az storage azcopy blob sync, and documentation should explicitly call out that the default is true.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Storagefeature-requestThis issue requires a new behavior in the product in order be resolved.This issue requires a new behavior in the product in order be resolved.