You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/storage/common/storage-use-azcopy-blobs.md
+15-61Lines changed: 15 additions & 61 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,9 @@ See the [Get started with AzCopy](storage-use-azcopy-v10.md) article to download
27
27
28
28
## Create a container
29
29
30
+
> [!TIP]
31
+
> The examples in this section enclose path arguments with single quotes (''). Use single quotes in all command shells except for the Windows Command Shell (cmd.exe). If you're using a Windows Command Shell (cmd.exe), enclose path arguments with double quotes ("") instead of single quotes ('').
32
+
30
33
You can use the [azcopy make](storage-ref-azcopy-make.md) command to create a container. The examples in this section create a container named `mycontainer`.
31
34
32
35
|||
@@ -35,9 +38,6 @@ You can use the [azcopy make](storage-ref-azcopy-make.md) command to create a co
35
38
|**Example**|`azcopy make 'https://mystorageaccount.blob.core.windows.net/mycontainer'`|
36
39
|**Example** (hierarchical namespace) |`azcopy make 'https://mystorageaccount.dfs.core.windows.net/mycontainer'`|
37
40
38
-
> [!TIP]
39
-
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
40
-
41
41
For detailed reference docs, see [azcopy make](storage-ref-azcopy-make.md).
42
42
43
43
## Upload files
@@ -52,11 +52,11 @@ This section contains the following examples:
52
52
> * Upload the contents of a directory
53
53
> * Upload specific files
54
54
55
-
> [!NOTE]
56
-
> AzCopy doesn't automatically calculate and store the file's md5 hash code. If you want AzCopy to do that, then append the `--put-md5` flag to each copy command. That way, when the blob is downloaded, AzCopy calculates an MD5 hash for downloaded data and verifies that the MD5 hash stored in the blob's `Content-md5` property matches the calculated hash.
57
-
58
55
For detailed reference docs, see [azcopy copy](storage-ref-azcopy-copy.md).
59
56
57
+
> [!TIP]
58
+
> The examples in this section enclose path arguments with single quotes (''). Use single quotes in all command shells except for the Windows Command Shell (cmd.exe). If you're using a Windows Command Shell (cmd.exe), enclose path arguments with double quotes ("") instead of single quotes ('').
59
+
60
60
### Upload a file
61
61
62
62
|||
@@ -65,9 +65,6 @@ For detailed reference docs, see [azcopy copy](storage-ref-azcopy-copy.md).
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
70
-
71
68
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`.
72
69
73
70
> [!NOTE]
@@ -83,19 +80,13 @@ This example copies a directory (and all of the files in that directory) to a bl
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
133
-
134
119
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.
135
120
136
121
You can also exclude files by using the `--exclude-path` option. To learn more, see [azcopy copy](storage-ref-azcopy-copy.md) reference docs.
137
122
138
-
139
123
#### Use wildcard characters
140
124
141
125
Use the [azcopy copy](storage-ref-azcopy-copy.md) command with the `--include-pattern` option. Specify partial names that include the wildcard characters. Separate names by using a semicolin (`;`).
@@ -146,9 +130,6 @@ Use the [azcopy copy](storage-ref-azcopy-copy.md) command with the `--include-pa
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
151
-
152
133
You can also exclude files by using the `--exclude-pattern` option. To learn more, see [azcopy copy](storage-ref-azcopy-copy.md) reference docs.
153
134
154
135
The `--include-pattern` and `--exclude-pattern` options apply only to filenames and not to the path. If you want to copy all of the text files that exist in a directory tree, use the `–recursive` option to get the entire directory tree, and then use the `–include-pattern` and specify `*.txt` to get all of the text files.
@@ -170,6 +151,9 @@ This section contains the following examples:
170
151
171
152
For detailed reference docs, see [azcopy copy](storage-ref-azcopy-copy.md).
172
153
154
+
> [!TIP]
155
+
> The examples in this section enclose path arguments with single quotes (''). Use single quotes in all command shells except for the Windows Command Shell (cmd.exe). If you're using a Windows Command Shell (cmd.exe), enclose path arguments with double quotes ("") instead of single quotes ('').
156
+
173
157
### Download a file
174
158
175
159
|||
@@ -178,9 +162,6 @@ For detailed reference docs, see [azcopy copy](storage-ref-azcopy-copy.md).
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
231
-
232
204
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.
233
205
234
206
You can also exclude files by using the `--exclude-path` option. To learn more, see [azcopy copy](storage-ref-azcopy-copy.md) reference docs.
@@ -243,9 +215,6 @@ Use the [azcopy copy](storage-ref-azcopy-copy.md) command with the `--include-pa
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
248
-
249
218
You can also exclude files by using the `--exclude-pattern` option. To learn more, see [azcopy copy](storage-ref-azcopy-copy.md) reference docs.
250
219
251
220
The `--include-pattern` and `--exclude-pattern` options apply only to filenames and not to the path. If you want to copy all of the text files that exist in a directory tree, use the `–recursive` option to get the entire directory tree, and then use the `–include-pattern` and specify `*.txt` to get all of the text files.
@@ -273,44 +242,36 @@ This section contains the following examples:
273
242
274
243
For detailed reference docs, see [azcopy copy](storage-ref-azcopy-copy.md).
275
244
245
+
> [!TIP]
246
+
> The examples in this section enclose path arguments with single quotes (''). Use single quotes in all command shells except for the Windows Command Shell (cmd.exe). If you're using a Windows Command Shell (cmd.exe), enclose path arguments with double quotes ("") instead of single quotes ('').
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
314
275
315
276
## Synchronize files
316
277
@@ -328,6 +289,9 @@ If you set the `--delete-destination` flag to `true` AzCopy deletes files withou
328
289
329
290
For detailed reference docs, see [azcopy sync](storage-ref-azcopy-sync.md).
330
291
292
+
> [!TIP]
293
+
> The examples in this section enclose path arguments with single quotes (''). Use single quotes in all command shells except for the Windows Command Shell (cmd.exe). If you're using a Windows Command Shell (cmd.exe), enclose path arguments with double quotes ("") instead of single quotes ('').
294
+
331
295
### Update a container with changes to a local file system
332
296
333
297
In this case, the container is the destination, and the local file system is the source.
@@ -337,9 +301,6 @@ In this case, the container is the destination, and the local file system is the
0 commit comments