From 1fcec872b1ee6bc123e003564edb271c4f3fdc74 Mon Sep 17 00:00:00 2001 From: skitau Date: Mon, 12 Oct 2020 11:53:17 +0800 Subject: [PATCH] azcopy: add page (#4569) --- pages/windows/azcopy.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/windows/azcopy.md diff --git a/pages/windows/azcopy.md b/pages/windows/azcopy.md new file mode 100644 index 000000000..0fd999b57 --- /dev/null +++ b/pages/windows/azcopy.md @@ -0,0 +1,28 @@ +# azcopy + +> A file transfer tool for uploading to Azure Cloud Storage Accounts. +> More information: . + +- Login to an Azure Tenant: + +`azopy 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}}' '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}}'` + +- Syncronise a local directory and delete files in the destination if they no longer exist in the source: + +`azcopy sync '{{path/to/source}}' 'https://{{storage-account-name}}.blob.core.windows.net/{{container-name}}' --recursive --delete-destination=true` + +- Display detailed usage information: + +`azcopy --help`