Skip to content

Commit 004edd3

Browse files
authored
Merge pull request #12036 from dahatake/patch-4
Updated the AzCopy paramter in Windows
2 parents bf522c6 + 4c3ac88 commit 004edd3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/storage/common/storage-use-azcopy-migrate-on-premises-data.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ You can use AzCopy to upload all files in a folder to Blob storage on [Windows](
6666
--recursive
6767

6868
# [Windows](#tab/windows)
69-
AzCopy /Source:C:\myfolder /Dest:https://myaccount.blob.core.windows.net/mycontainer /DestKey: key /S
69+
AzCopy /Source:C:\myfolder /Dest:https://myaccount.blob.core.windows.net/mycontainer /DestKey:<key> /S
7070
---
7171

7272
Replace `<key>` and `key` with your account key. In the Azure portal, you can retrieve your account key by selecting **Access keys** under **Settings** in your storage account. Select a key, and paste it into the AzCopy command. If the specified destination container does not exist, AzCopy creates it and uploads the file into it. Update the source path to your data directory, and replace **myaccount** in the destination URL with your storage account name.
@@ -87,7 +87,7 @@ If you only want to copy source resources that do not exist in the destination,
8787
--exclude-older
8888

8989
# [Windows](#tab/windows)
90-
AzCopy /Source:C:\myfolder /Dest:https://myaccount.blob.core.windows.net/mycontainer /DestKey: key /S /XO
90+
AzCopy /Source:C:\myfolder /Dest:https://myaccount.blob.core.windows.net/mycontainer /DestKey:<key> /S /XO
9191
---
9292

9393
## Create a scheduled task or cron job
@@ -100,7 +100,7 @@ Copy the AzCopy command to a text editor. Update the parameter values of the AzC
100100

101101
# [Windows](#tab/windows)
102102
cd C:\Program Files (x86)\Microsoft SDKs\Azure\AzCopy
103-
AzCopy /Source: C:\myfolder /Dest:https://myaccount.blob.core.windows.net/mycontainer /DestKey: key /V /XO /XN >C:\Path\to\logfolder\azcopy%date:~-4,4%%date:~-7,2%%date:~-10,2%%time:~-11,2%%time:~-8,2%%time:~-5,2%.log
103+
AzCopy /Source: C:\myfolder /Dest:https://myaccount.blob.core.windows.net/mycontainer /DestKey:<key> /V /XO /XN >C:\Path\to\logfolder\azcopy%date:~-4,4%%date:~-7,2%%date:~-10,2%%time:~-11,2%%time:~-8,2%%time:~-5,2%.log
104104
---
105105

106106
AzCopy is run with the verbose `--verbose` (Linux) or `/V` (Windows) option. The output is redirected into a log file.

0 commit comments

Comments
 (0)