Skip to content

az storage azcopy blob sync: allow setting of --delete-destination #3103

@Arithmomaniac

Description

@Arithmomaniac

Extension name

storage-preview

Description

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.

Metadata

Metadata

Assignees

Labels

Storagefeature-requestThis issue requires a new behavior in the product in order be resolved.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions