Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Storage] Upgrade Azcopy for storage copy/remove and blob sync #11874

Merged
merged 15 commits into from
Jan 21, 2020
Prev Previous commit
Next Next commit
fix style
  • Loading branch information
Juliehzl committed Jan 21, 2020
commit 9aa4b18b3363e21f154d1cdae325d35a40c34bef
2 changes: 1 addition & 1 deletion src/azure-cli/azure/cli/command_modules/storage/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@
- name: Remove all the blobs in a Storage Container.
text: az storage remove -c MyContainer -n path/to/directory
- name: Remove a subset of blobs in a virtual directory (For example, only jpg and pdf files, or if the blob name is "exactName").
text: az storage remove -c MyContainer --include-path path/to/directory --include-pattern "*.jpg;*.pdf;exactName" --recursive
text: az storage remove -c MyContainer --include-path path/to/directory --include-pattern "*.jpg;*.pdf;exactName" --recursive
- name: Remove an entire virtual directory but exclude certain blobs from the scope (For example, every blob that starts with foo or ends with bar).
text: az storage remove -c MyContainer --include-path path/to/directory --exclude-pattern "foo*;*bar" --recursive
- name: Remove a single file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def install_azcopy(self, install_location):
else:
file_url = base_url.format('windows', '386', AZCOPY_VERSION, 'zip')
elif self.system == 'Linux':
file_url = base_url.format('linux', 'amd64', AZCOPY_VERSION,'tar.gz')
file_url = base_url.format('linux', 'amd64', AZCOPY_VERSION, 'tar.gz')
elif self.system == 'Darwin':
file_url = base_url.format('darwin', 'amd64', AZCOPY_VERSION, 'zip')
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from ..azcopy.util import AzCopy, client_auth_for_azcopy, login_auth_for_azcopy
from azure.cli.command_modules.storage._client_factory import blob_data_service_factory, file_data_service_factory

# pylint: disable=too-many-statements
# pylint: disable=too-many-statements, too-many-locals


def storage_copy(cmd, source=None,
Expand Down