mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 19:00:46 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
33
tldr/windows/azcopy
Normal file
33
tldr/windows/azcopy
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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:
|
||||
|
||||
`azopy login`
|
||||
|
||||
- Upload a local file:
|
||||
|
||||
`azcopy copy '{{path o\source_file}}' 'https://{{storage_account_name}}.blob.core.windows.net/{{container_name}}/{{blob_name}}'`
|
||||
|
||||
- Upload files with `.txt` and `.jpg` extensions:
|
||||
|
||||
`azcopy copy '{{path o\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 o\source_directory}}' 'https://{{storage_account_name}}.blob.core.windows.net/{{container_name}}' --recursive --delete-destination=true`
|
||||
|
||||
- Display help:
|
||||
|
||||
`azcopy --help`
|
||||
Reference in New Issue
Block a user