1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-15 06:55:41 +02:00
tldr/pages/windows/azcopy.md
Starsoon 82eb0aa1b6
pages.es/windows/*: add Spanish translation (#16716)
Co-authored-by: Darío Hereñú <magallania@gmail.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2025-07-20 09:46:34 +03:00

28 lines
1.1 KiB
Markdown

# azcopy
> A file transfer tool for uploading to Azure Cloud Storage Accounts.
> More information: <https://learn.microsoft.com/azure/storage/common/storage-use-azcopy-v10>.
- 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`