@@ -35,7 +35,8 @@ You can use the [azcopy make](storage-ref-azcopy-make.md) command to create a co
35
35
| ** Example** | ` azcopy make 'https://mystorageaccount.blob.core.windows.net/mycontainer' ` |
36
36
| ** Example** (hierarchical namespace) | ` azcopy make 'https://mystorageaccount.dfs.core.windows.net/mycontainer' ` |
37
37
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 ('').
39
40
40
41
For detailed reference docs, see [ azcopy make] ( storage-ref-azcopy-make.md ) .
41
42
@@ -64,7 +65,8 @@ For detailed reference docs, see [azcopy copy](storage-ref-azcopy-copy.md).
64
65
| ** Example** | ` azcopy copy 'C:\myDirectory\myTextFile.txt' 'https://mystorageaccount.blob.core.windows.net/mycontainer/myTextFile.txt' ` |
65
66
| ** Example** (hierarchical namespace) | ` azcopy copy 'C:\myDirectory\myTextFile.txt' 'https://mystorageaccount.dfs.core.windows.net/mycontainer/myTextFile.txt' ` |
66
67
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 ('').
68
70
69
71
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 ` .
70
72
@@ -81,7 +83,8 @@ This example copies a directory (and all of the files in that directory) to a bl
81
83
| ** Example** | ` azcopy copy 'C:\myDirectory' 'https://mystorageaccount.blob.core.windows.net/mycontainer' --recursive ` |
82
84
| ** Example** (hierarchical namespace) | ` azcopy copy 'C:\myDirectory' 'https://mystorageaccount.dfs.core.windows.net/mycontainer' --recursive ` |
83
85
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 ('').
85
88
86
89
To copy to a directory within the container, just specify the name of that directory in your command string.
87
90
@@ -90,7 +93,8 @@ To copy to a directory within the container, just specify the name of that direc
90
93
| ** Example** | ` azcopy copy 'C:\myDirectory' 'https://mystorageaccount.blob.core.windows.net/mycontainer/myBlobDirectory' --recursive ` |
91
94
| ** Example** (hierarchical namespace) | ` azcopy copy 'C:\myDirectory' 'https://mystorageaccount.dfs.core.windows.net/mycontainer/myBlobDirectory' --recursive ` |
92
95
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 ('').
94
98
95
99
If you specify the name of a directory that does not exist in the container, AzCopy creates a new directory by that name.
96
100
@@ -104,7 +108,8 @@ You can upload the contents of a directory without copying the containing direct
104
108
| ** Example** | ` azcopy copy 'C:\myDirectory\*' 'https://mystorageaccount.blob.core.windows.net/mycontainer/myBlobDirectory' ` |
105
109
| ** Example** (hierarchical namespace) | ` azcopy copy 'C:\myDirectory\*' 'https://mystorageaccount.dfs.core.windows.net/mycontainer/myBlobDirectory' ` |
106
110
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 ('').
108
113
109
114
> [ !NOTE]
110
115
> 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
123
128
| ** Example** | ` azcopy copy 'C:\myDirectory' 'https://mystorageaccount.blob.core.windows.net/mycontainer' --include-path 'photos;documents\myFile.txt' --recursive ` |
124
129
| ** Example** (hierarchical namespace) | ` azcopy copy 'C:\myDirectory' 'https://mystorageaccount.dfs.core.windows.net/mycontainer' --include-path 'photos;documents\myFile.txt' --recursive ` |
125
130
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 ('').
127
133
128
134
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.
129
135
@@ -140,7 +146,8 @@ Use the [azcopy copy](storage-ref-azcopy-copy.md) command with the `--include-pa
140
146
| ** Example** | ` azcopy copy 'C:\myDirectory' 'https://mystorageaccount.blob.core.windows.net/mycontainer' --include-pattern 'myFile*.txt;*.pdf*' ` |
141
147
| ** Example** (hierarchical namespace) | ` azcopy copy 'C:\myDirectory' 'https://mystorageaccount.dfs.core.windows.net/mycontainer' --include-pattern 'myFile*.txt;*.pdf*' ` |
142
148
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 ('').
144
151
145
152
You can also exclude files by using the ` --exclude-pattern ` option. To learn more, see [ azcopy copy] ( storage-ref-azcopy-copy.md ) reference docs.
146
153
@@ -171,7 +178,8 @@ For detailed reference docs, see [azcopy copy](storage-ref-azcopy-copy.md).
171
178
| ** Example** | ` azcopy copy 'https://mystorageaccount.blob.core.windows.net/mycontainer/myTextFile.txt' 'C:\myDirectory\myTextFile.txt' ` |
172
179
| ** Example** (hierarchical namespace) | ` azcopy copy 'https://mystorageaccount.dfs.core.windows.net/mycontainer/myTextFile.txt' 'C:\myDirectory\myTextFile.txt' ` |
173
180
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 ('').
175
183
176
184
### Download a directory
177
185
@@ -181,7 +189,8 @@ In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instea
181
189
| ** Example** | ` azcopy copy 'https://mystorageaccount.blob.core.windows.net/mycontainer/myBlobDirectory' 'C:\myDirectory' --recursive ` |
182
190
| ** Example** (hierarchical namespace) | ` azcopy copy 'https://mystorageaccount.dfs.core.windows.net/mycontainer/myBlobDirectory 'C:\myDirectory' --recursive ` |
183
191
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 ('').
185
194
186
195
This example results in a directory named ` C:\myDirectory\myBlobDirectory ` that contains all of the downloaded files.
187
196
@@ -197,7 +206,8 @@ You can download the contents of a directory without copying the containing dire
197
206
| ** Syntax** | ` azcopy copy 'https://<storage-account-name>.blob.core.windows.net/<container-name>/*' '<local-directory-path>/' ` |
198
207
| ** Example** | ` azcopy copy 'https://mystorageaccount.blob.core.windows.net/mycontainer/myBlobDirectory/*' 'C:\myDirectory' ` |
199
208
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 ('').
201
211
202
212
> [ !NOTE]
203
213
> 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
216
226
| ** Example** | ` azcopy copy 'https://mystorageaccount.blob.core.windows.net/mycontainer/FileDirectory' 'C:\myDirectory' --include-path 'photos;documents\myFile.txt' --recursive ` |
217
227
| ** Example** (hierarchical namespace) | ` azcopy copy 'https://mystorageaccount.dfs.core.windows.net/mycontainer/FileDirectory' 'C:\myDirectory' --include-path 'photos;documents\myFile.txt'--recursive ` |
218
228
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 ('').
220
231
221
232
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.
222
233
@@ -232,7 +243,8 @@ Use the [azcopy copy](storage-ref-azcopy-copy.md) command with the `--include-pa
232
243
| ** Example** | ` azcopy copy 'https://mystorageaccount.blob.core.windows.net/mycontainer/FileDirectory' 'C:\myDirectory' --include-pattern 'myFile*.txt;*.pdf*' ` |
233
244
| ** Example** (hierarchical namespace) | ` azcopy copy 'https://mystorageaccount.dfs.core.windows.net/mycontainer/FileDirectory' 'C:\myDirectory' --include-pattern 'myFile*.txt;*.pdf*' ` |
234
245
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 ('').
236
248
237
249
You can also exclude files by using the ` --exclude-pattern ` option. To learn more, see [ azcopy copy] ( storage-ref-azcopy-copy.md ) reference docs.
238
250
@@ -268,7 +280,8 @@ For detailed reference docs, see [azcopy copy](storage-ref-azcopy-copy.md).
268
280
| ** 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>' ` |
269
281
| ** 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' ` |
270
282
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 ('').
272
285
273
286
### Copy a directory to another storage account
274
287
@@ -277,7 +290,8 @@ In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instea
277
290
| ** 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 ` |
278
291
| ** 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 ` |
279
292
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 ('').
281
295
282
296
### Copy a container to another storage account
283
297
@@ -286,16 +300,17 @@ In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instea
286
300
| ** 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 ` |
287
301
| ** 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 ` |
288
302
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 ('').
290
305
291
306
### Copy all containers, directories, and blobs to another storage account
292
307
293
308
| | |
294
309
| --------| -----------|
295
310
| ** Syntax** | ` azcopy copy 'https://<source-storage-account-name>.blob.core.windows.net/?<SAS-token>' 'https://<destination-storage-account-name>.blob.core.windows.net/' --recursive' ` |
296
311
| ** 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 ('').
299
314
300
315
## Synchronize files
301
316
@@ -322,7 +337,8 @@ In this case, the container is the destination, and the local file system is the
322
337
| ** Syntax** | ` azcopy sync '<local-directory-path>' 'https://<storage-account-name>.blob.core.windows.net/<container-name>' --recursive ` |
323
338
| ** Example** | ` azcopy sync 'C:\myDirectory' 'https://mystorageaccount.blob.core.windows.net/mycontainer' --recursive ` |
324
339
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 ('').
326
342
327
343
### Update a local file system with changes to a container
328
344
@@ -333,8 +349,8 @@ In this case, the local file system is the destination, and the container is the
333
349
| ** Syntax** | ` azcopy sync 'https://<storage-account-name>.blob.core.windows.net/<container-name>' 'C:\myDirectory' --recursive ` |
334
350
| ** Example** | ` azcopy sync 'https://mystorageaccount.blob.core.windows.net/mycontainer' 'C:\myDirectory' --recursive ` |
335
351
|
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 ('').
338
354
339
355
### Update a container with changes in another container
340
356
@@ -356,7 +372,8 @@ The first directory that appears in this command is the source. The second one i
356
372
| ** 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 ` |
357
373
| ** Example** | ` azcopy copy 'https://mysourceaccount.blob.core.windows.net/<container-name>/myDirectory' 'https://mydestinationaccount.blob.core.windows.net/mycontainer/myDirectory' --recursive ` |
358
374
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 ('').
360
377
361
378
## Next steps
362
379
0 commit comments