Skip to content

Commit 30a460c

Browse files
committed
Adjusting the note
1 parent c680eed commit 30a460c

File tree

3 files changed

+82
-43
lines changed

3 files changed

+82
-43
lines changed

articles/storage/common/storage-use-azcopy-blobs.md

Lines changed: 38 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ You can use the [azcopy make](storage-ref-azcopy-make.md) command to create a co
3535
| **Example** | `azcopy make 'https://mystorageaccount.blob.core.windows.net/mycontainer'` |
3636
| **Example** (hierarchical namespace) | `azcopy make 'https://mystorageaccount.dfs.core.windows.net/mycontainer'` |
3737

38-
In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instead of single quotes ('').
38+
> [!TIP]
39+
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
3940
4041
For detailed reference docs, see [azcopy make](storage-ref-azcopy-make.md).
4142

@@ -64,7 +65,8 @@ For detailed reference docs, see [azcopy copy](storage-ref-azcopy-copy.md).
6465
| **Example** | `azcopy copy 'C:\myDirectory\myTextFile.txt' 'https://mystorageaccount.blob.core.windows.net/mycontainer/myTextFile.txt'` |
6566
| **Example** (hierarchical namespace) | `azcopy copy 'C:\myDirectory\myTextFile.txt' 'https://mystorageaccount.dfs.core.windows.net/mycontainer/myTextFile.txt'` |
6667

67-
In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instead of single quotes ('').
68+
> [!TIP]
69+
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
6870
6971
You can also upload a file by using a wildcard symbol (*) anywhere in the file path or file name. For example: `'C:\myDirectory\*.txt'`, or `C:\my*\*.txt`.
7072

@@ -81,7 +83,8 @@ This example copies a directory (and all of the files in that directory) to a bl
8183
| **Example** | `azcopy copy 'C:\myDirectory' 'https://mystorageaccount.blob.core.windows.net/mycontainer' --recursive` |
8284
| **Example** (hierarchical namespace) | `azcopy copy 'C:\myDirectory' 'https://mystorageaccount.dfs.core.windows.net/mycontainer' --recursive` |
8385

84-
In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instead of single quotes ('').
86+
> [!TIP]
87+
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
8588
8689
To copy to a directory within the container, just specify the name of that directory in your command string.
8790

@@ -90,7 +93,8 @@ To copy to a directory within the container, just specify the name of that direc
9093
| **Example** | `azcopy copy 'C:\myDirectory' 'https://mystorageaccount.blob.core.windows.net/mycontainer/myBlobDirectory' --recursive` |
9194
| **Example** (hierarchical namespace) | `azcopy copy 'C:\myDirectory' 'https://mystorageaccount.dfs.core.windows.net/mycontainer/myBlobDirectory' --recursive` |
9295

93-
In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instead of single quotes ('').
96+
> [!TIP]
97+
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
9498
9599
If you specify the name of a directory that does not exist in the container, AzCopy creates a new directory by that name.
96100

@@ -104,7 +108,8 @@ You can upload the contents of a directory without copying the containing direct
104108
| **Example** | `azcopy copy 'C:\myDirectory\*' 'https://mystorageaccount.blob.core.windows.net/mycontainer/myBlobDirectory'` |
105109
| **Example** (hierarchical namespace) | `azcopy copy 'C:\myDirectory\*' 'https://mystorageaccount.dfs.core.windows.net/mycontainer/myBlobDirectory'` |
106110

107-
In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instead of single quotes ('').
111+
> [!TIP]
112+
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
108113
109114
> [!NOTE]
110115
> Append the `--recursive` flag to upload files in all sub-directories.
@@ -123,7 +128,8 @@ Use the [azcopy copy](storage-ref-azcopy-copy.md) command with the `--include-pa
123128
| **Example** | `azcopy copy 'C:\myDirectory' 'https://mystorageaccount.blob.core.windows.net/mycontainer' --include-path 'photos;documents\myFile.txt' --recursive` |
124129
| **Example** (hierarchical namespace) | `azcopy copy 'C:\myDirectory' 'https://mystorageaccount.dfs.core.windows.net/mycontainer' --include-path 'photos;documents\myFile.txt' --recursive` |
125130

126-
In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instead of single quotes ('').
131+
> [!TIP]
132+
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
127133
128134
In this example, AzCopy transfers the `C:\myDirectory\photos` directory and the `C:\myDirectory\documents\myFile.txt` file. You need to include the `--recursive` option to transfer all files in the `C:\myDirectory\photos` directory.
129135

@@ -140,7 +146,8 @@ Use the [azcopy copy](storage-ref-azcopy-copy.md) command with the `--include-pa
140146
| **Example** | `azcopy copy 'C:\myDirectory' 'https://mystorageaccount.blob.core.windows.net/mycontainer' --include-pattern 'myFile*.txt;*.pdf*'` |
141147
| **Example** (hierarchical namespace) | `azcopy copy 'C:\myDirectory' 'https://mystorageaccount.dfs.core.windows.net/mycontainer' --include-pattern 'myFile*.txt;*.pdf*'` |
142148

143-
In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instead of single quotes ('').
149+
> [!TIP]
150+
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
144151
145152
You can also exclude files by using the `--exclude-pattern` option. To learn more, see [azcopy copy](storage-ref-azcopy-copy.md) reference docs.
146153

@@ -171,7 +178,8 @@ For detailed reference docs, see [azcopy copy](storage-ref-azcopy-copy.md).
171178
| **Example** | `azcopy copy 'https://mystorageaccount.blob.core.windows.net/mycontainer/myTextFile.txt' 'C:\myDirectory\myTextFile.txt'` |
172179
| **Example** (hierarchical namespace) | `azcopy copy 'https://mystorageaccount.dfs.core.windows.net/mycontainer/myTextFile.txt' 'C:\myDirectory\myTextFile.txt'` |
173180

174-
In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instead of single quotes ('').
181+
> [!TIP]
182+
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
175183
176184
### Download a directory
177185

@@ -181,7 +189,8 @@ In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instea
181189
| **Example** | `azcopy copy 'https://mystorageaccount.blob.core.windows.net/mycontainer/myBlobDirectory' 'C:\myDirectory' --recursive` |
182190
| **Example** (hierarchical namespace) | `azcopy copy 'https://mystorageaccount.dfs.core.windows.net/mycontainer/myBlobDirectory 'C:\myDirectory' --recursive` |
183191

184-
In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instead of single quotes ('').
192+
> [!TIP]
193+
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
185194
186195
This example results in a directory named `C:\myDirectory\myBlobDirectory` that contains all of the downloaded files.
187196

@@ -197,7 +206,8 @@ You can download the contents of a directory without copying the containing dire
197206
| **Syntax** | `azcopy copy 'https://<storage-account-name>.blob.core.windows.net/<container-name>/*' '<local-directory-path>/'` |
198207
| **Example** | `azcopy copy 'https://mystorageaccount.blob.core.windows.net/mycontainer/myBlobDirectory/*' 'C:\myDirectory'` |
199208

200-
In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instead of single quotes ('').
209+
> [!TIP]
210+
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
201211
202212
> [!NOTE]
203213
> Append the `--recursive` flag to download files in all sub-directories.
@@ -216,7 +226,8 @@ Use the [azcopy copy](storage-ref-azcopy-copy.md) command with the `--include-pa
216226
| **Example** | `azcopy copy 'https://mystorageaccount.blob.core.windows.net/mycontainer/FileDirectory' 'C:\myDirectory' --include-path 'photos;documents\myFile.txt' --recursive` |
217227
| **Example** (hierarchical namespace) | `azcopy copy 'https://mystorageaccount.dfs.core.windows.net/mycontainer/FileDirectory' 'C:\myDirectory' --include-path 'photos;documents\myFile.txt'--recursive` |
218228

219-
In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instead of single quotes ('').
229+
> [!TIP]
230+
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
220231
221232
In this example, AzCopy transfers the `https://mystorageaccount.blob.core.windows.net/mycontainer/FileDirectory/photos` directory and the `https://mystorageaccount.blob.core.windows.net/mycontainer/FileDirectory/documents/myFile.txt` file. You need to include the `--recursive` option to transfer all files in the `https://mystorageaccount.blob.core.windows.net/mycontainer/FileDirectory/photos` directory.
222233

@@ -232,7 +243,8 @@ Use the [azcopy copy](storage-ref-azcopy-copy.md) command with the `--include-pa
232243
| **Example** | `azcopy copy 'https://mystorageaccount.blob.core.windows.net/mycontainer/FileDirectory' 'C:\myDirectory' --include-pattern 'myFile*.txt;*.pdf*'` |
233244
| **Example** (hierarchical namespace) | `azcopy copy 'https://mystorageaccount.dfs.core.windows.net/mycontainer/FileDirectory' 'C:\myDirectory' --include-pattern 'myFile*.txt;*.pdf*'` |
234245

235-
In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instead of single quotes ('').
246+
> [!TIP]
247+
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
236248
237249
You can also exclude files by using the `--exclude-pattern` option. To learn more, see [azcopy copy](storage-ref-azcopy-copy.md) reference docs.
238250

@@ -268,7 +280,8 @@ For detailed reference docs, see [azcopy copy](storage-ref-azcopy-copy.md).
268280
| **Syntax** | `azcopy copy 'https://<source-storage-account-name>.blob.core.windows.net/<container-name>/<blob-path>?<SAS-token>' 'https://<destination-storage-account-name>.blob.core.windows.net/<container-name>/<blob-path>'` |
269281
| **Example** | `azcopy copy 'https://mysourceaccount.blob.core.windows.net/mycontainer/myTextFile.txt?sv=2018-03-28&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-07-04T05:30:08Z&st=2019-07-03T21:30:08Z&spr=https&sig=CAfhgnc9gdGktvB=ska7bAiqIddM845yiyFwdMH481QA8%3D' 'https://mydestinationaccount.blob.core.windows.net/mycontainer/myTextFile.txt'` |
270282

271-
In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instead of single quotes ('').
283+
> [!TIP]
284+
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
272285
273286
### Copy a directory to another storage account
274287

@@ -277,7 +290,8 @@ In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instea
277290
| **Syntax** | `azcopy copy 'https://<source-storage-account-name>.blob.core.windows.net/<container-name>/<directory-path>?<SAS-token>' 'https://<destination-storage-account-name>.blob.core.windows.net/<container-name>' --recursive` |
278291
| **Example** | `azcopy copy 'https://mysourceaccount.blob.core.windows.net/mycontainer/myBlobDirectory?sv=2018-03-28&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-07-04T05:30:08Z&st=2019-07-03T21:30:08Z&spr=https&sig=CAfhgnc9gdGktvB=ska7bAiqIddM845yiyFwdMH481QA8%3D' 'https://mydestinationaccount.blob.core.windows.net/mycontainer' --recursive` |
279292

280-
In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instead of single quotes ('').
293+
> [!TIP]
294+
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
281295
282296
### Copy a container to another storage account
283297

@@ -286,16 +300,17 @@ In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instea
286300
| **Syntax** | `azcopy copy 'https://<source-storage-account-name>.blob.core.windows.net/<container-name>?<SAS-token>' 'https://<destination-storage-account-name>.blob.core.windows.net/<container-name>' --recursive` |
287301
| **Example** | `azcopy copy 'https://mysourceaccount.blob.core.windows.net/mycontainer?sv=2018-03-28&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-07-04T05:30:08Z&st=2019-07-03T21:30:08Z&spr=https&sig=CAfhgnc9gdGktvB=ska7bAiqIddM845yiyFwdMH481QA8%3D' 'https://mydestinationaccount.blob.core.windows.net/mycontainer' --recursive` |
288302

289-
In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instead of single quotes ('').
303+
> [!TIP]
304+
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
290305
291306
### Copy all containers, directories, and blobs to another storage account
292307

293308
| | |
294309
|--------|-----------|
295310
| **Syntax** | `azcopy copy 'https://<source-storage-account-name>.blob.core.windows.net/?<SAS-token>' 'https://<destination-storage-account-name>.blob.core.windows.net/' --recursive'` |
296311
| **Example** | `azcopy copy 'https://mysourceaccount.blob.core.windows.net?sv=2018-03-28&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-07-04T05:30:08Z&st=2019-07-03T21:30:08Z&spr=https&sig=CAfhgnc9gdGktvB=ska7bAiqIddM845yiyFwdMH481QA8%3D' 'https://mydestinationaccount.blob.core.windows.net' --recursive` |
297-
298-
In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instead of single quotes ('').
312+
> [!TIP]
313+
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
299314
300315
## Synchronize files
301316

@@ -322,7 +337,8 @@ In this case, the container is the destination, and the local file system is the
322337
| **Syntax** | `azcopy sync '<local-directory-path>' 'https://<storage-account-name>.blob.core.windows.net/<container-name>' --recursive` |
323338
| **Example** | `azcopy sync 'C:\myDirectory' 'https://mystorageaccount.blob.core.windows.net/mycontainer' --recursive` |
324339

325-
In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instead of single quotes ('').
340+
> [!TIP]
341+
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
326342
327343
### Update a local file system with changes to a container
328344

@@ -333,8 +349,8 @@ In this case, the local file system is the destination, and the container is the
333349
| **Syntax** | `azcopy sync 'https://<storage-account-name>.blob.core.windows.net/<container-name>' 'C:\myDirectory' --recursive` |
334350
| **Example** | `azcopy sync 'https://mystorageaccount.blob.core.windows.net/mycontainer' 'C:\myDirectory' --recursive` |
335351
|
336-
337-
In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instead of single quotes ('').
352+
> [!TIP]
353+
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
338354
339355
### Update a container with changes in another container
340356

@@ -356,7 +372,8 @@ The first directory that appears in this command is the source. The second one i
356372
| **Syntax** | `azcopy sync 'https://<source-storage-account-name>.blob.core.windows.net/<container-name>/<directory-name>' 'https://<destination-storage-account-name>.blob.core.windows.net/<container-name>/<directory-name>' --recursive` |
357373
| **Example** | `azcopy copy 'https://mysourceaccount.blob.core.windows.net/<container-name>/myDirectory' 'https://mydestinationaccount.blob.core.windows.net/mycontainer/myDirectory' --recursive` |
358374

359-
In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instead of single quotes ('').
375+
> [!TIP]
376+
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
360377
361378
## Next steps
362379

0 commit comments

Comments
 (0)