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
AzCopy is a command-line utility that you can use to copy files to or from a storage account. This article contains example commands that work with Azure Files.
15
15
16
-
Before you begin, see the [Get started with AzCopy](storage-use-azcopy-v10.md) article to download AzCopy and familiarize yourself with the tool.
16
+
## Get started
17
17
18
-
> [!TIP]
19
-
> The examples in this article 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 ('').
18
+
See the [Get started with AzCopy](storage-use-azcopy-v10.md) article to download AzCopy and learn about the ways that you can provide authorization credentials to the storage service.
19
+
20
+
> [!NOTE]
21
+
> The examples in this article show the use of a SAS token to authorize access. However, for commands that target files and directories, you can now provide authorization credentials by using Microsoft Entra ID and omit the SAS token from those commands. You'll still have to use a SAS token in any command that targets only the file share or the account (For example: `'azcopy make https://mystorageaccount.file.core.windows.net/myfileshare'` or `'azcopy copy 'https://mystorageaccount.file.core.windows.net'`.
22
+
>
23
+
> To learn more, see [Authorize AzCopy](storage-use-azcopy-v10.md#authorize-azcopy).
20
24
21
25
## Create file shares
22
26
23
27
You can use the [azcopy make](storage-ref-azcopy-make.md) command to create a file share. The example in this section creates a file share named `myfileshare`.
24
28
29
+
> [!TIP]
30
+
> This example encloses 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 ('').
31
+
25
32
**Syntax**
26
33
27
34
`azcopy make 'https://<storage-account-name>.file.core.windows.net/<file-share-name><SAS-token>'`
@@ -38,6 +45,9 @@ For detailed reference docs, see [azcopy make](storage-ref-azcopy-make.md).
38
45
39
46
You can use the [azcopy copy](storage-ref-azcopy-copy.md) command to upload files and directories from your local computer.
40
47
48
+
> [!TIP]
49
+
> 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 ('').
50
+
41
51
This section contains the following examples:
42
52
43
53
> [!div class="checklist"]
@@ -63,7 +73,7 @@ This section contains the following examples:
@@ -174,6 +184,9 @@ For detailed reference, see the [azcopy copy](storage-ref-azcopy-copy.md) refere
174
184
175
185
You can use the [azcopy copy](storage-ref-azcopy-copy.md) command to download files, directories, and file shares to your local computer.
176
186
187
+
> [!TIP]
188
+
> 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 ('').
You can also copy specific versions of a file by referencing the **DateTime** value of a share snapshot. To learn more about share snapshots, see [Overview of share snapshots for Azure Files](../files/storage-snapshots-files.md).
325
338
339
+
> [!TIP]
340
+
> 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 ('').
341
+
326
342
This section contains the following examples:
327
343
328
344
> [!div class="checklist"]
@@ -439,6 +455,8 @@ You can synchronize the contents of a local file system with a file share or syn
439
455
>
440
456
> For a complete list, see [options](storage-ref-azcopy-sync.md#options).
441
457
458
+
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 ('').
459
+
442
460
### Update a file share with changes to a local file system
443
461
444
462
In this case, the file share is the destination, and the local file system is the source.
0 commit comments