mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 06:22:07 +02:00
azcopy: add page (#4569)
This commit is contained in:
parent
e5d969ecb3
commit
1fcec872b1
1 changed files with 28 additions and 0 deletions
28
pages/windows/azcopy.md
Normal file
28
pages/windows/azcopy.md
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# azcopy
|
||||||
|
|
||||||
|
> A file transfer tool for uploading to Azure Cloud Storage Accounts.
|
||||||
|
> More information: <https://docs.microsoft.com/azure/storage/common/storage-use-azcopy-v10>.
|
||||||
|
|
||||||
|
- 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`
|
Loading…
Add table
Reference in a new issue