From 4028a771d22923961e212091d894e8c9ab5bc35f Mon Sep 17 00:00:00 2001 From: Dylan <145150333+dmmqz@users.noreply.github.com> Date: Fri, 20 Feb 2026 02:20:21 +0000 Subject: [PATCH] azcopy: move to common, update page (#21179) --- pages/common/azcopy.md | 29 +++++++++++++++++++++++++++++ pages/windows/azcopy.md | 28 ---------------------------- 2 files changed, 29 insertions(+), 28 deletions(-) create mode 100644 pages/common/azcopy.md delete mode 100644 pages/windows/azcopy.md diff --git a/pages/common/azcopy.md b/pages/common/azcopy.md new file mode 100644 index 0000000000..fb40bc466d --- /dev/null +++ b/pages/common/azcopy.md @@ -0,0 +1,29 @@ +# azcopy + +> Copy data to and from Azure Storage. +> See also: `az storage`. +> More information: . + +- Log in to an Azure Tenant: + +`azcopy login` + +- Upload a local file: + +`azcopy {{[c|copy]}} '{{path/to/source_file}}' 'https://{{storage_account_name}}.blob.core.windows.net/{{container_name}}/{{blob_name}}'` + +- Upload files with `.txt` and `.jpg` extensions: + +`azcopy {{[c|copy]}} '{{path/to/source_directory}}' 'https://{{storage_account_name}}.blob.core.windows.net/{{container_name}}' --include-pattern '*.txt;*.jpg'` + +- Copy a container directly between two Azure storage accounts: + +`azcopy {{[c|copy]}} 'https://{{source_storage_account_name}}.blob.core.windows.net/{{container_name}}' 'https://{{destination_storage_account_name}}.blob.core.windows.net/{{container_name}}'` + +- Synchronize a local directory and delete files in the destination if they no longer exist in the source: + +`azcopy {{[s|sync]}} '{{path/to/source_directory}}' 'https://{{storage_account_name}}.blob.core.windows.net/{{container_name}}' --delete-destination true` + +- Display help: + +`azcopy {{[-h|--help]}}` diff --git a/pages/windows/azcopy.md b/pages/windows/azcopy.md deleted file mode 100644 index 2283e46696..0000000000 --- a/pages/windows/azcopy.md +++ /dev/null @@ -1,28 +0,0 @@ -# azcopy - -> A file transfer tool for uploading to Azure Cloud Storage Accounts. -> More information: . - -- Log in to an Azure Tenant: - -`azcopy login` - -- Upload a local file: - -`azcopy copy '{{path\to\source_file}}' 'https://{{storage_account_name}}.blob.core.windows.net/{{container_name}}/{{blob_name}}'` - -- Upload files with `.txt` and `.jpg` extensions: - -`azcopy copy '{{path\to\source_directory}}' 'https://{{storage_account_name}}.blob.core.windows.net/{{container_name}}' --include-pattern '{{*.txt;*.jpg}}'` - -- Copy a container directly between two Azure storage accounts: - -`azcopy copy 'https://{{source_storage_account_name}}.blob.core.windows.net/{{container_name}}' 'https://{{destination_storage_account_name}}.blob.core.windows.net/{{container_name}}'` - -- Synchronize a local directory and delete files in the destination if they no longer exist in the source: - -`azcopy sync '{{path\to\source_directory}}' 'https://{{storage_account_name}}.blob.core.windows.net/{{container_name}}' --recursive --delete-destination=true` - -- Display help: - -`azcopy --help`