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: README.md
+82-44
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,12 @@
2
2
3
3
## About
4
4
5
-
AzCopy (v10 Preview) is the next-generation command-line utility designed for copying data to/from Microsoft Azure Blob, and File, using simple commands designed for optimal performance. You can copy data between a file system and a storage account, or between storage accounts.
5
+
AzCopy (v10 Preview) is the next-generation command-line utility designed for copying data to/from Microsoft Azure Blob and File, using simple commands designed for optimal performance. You can copy data between a file system and a storage account, or between storage accounts.
6
6
7
7
## Features
8
8
9
9
* Copy data from Azure Blob containers/File shares to File system, and vice versa
10
-
* Copy block blob data between an Azure account to another
10
+
* Copy block blobs between two Azure Storage accounts
11
11
* Sync a directory in local file system to Azure Blob and File shares, or vice versa
12
12
* List/Remove files and blobs in a given path
13
13
* Supports glob patterns in path, --include and --exclude flags
@@ -16,61 +16,81 @@ AzCopy (v10 Preview) is the next-generation command-line utility designed for co
16
16
## Installation
17
17
18
18
1. Download the AzCopy executable using one of the following links:
AzCopy requires the use of SAS tokens when copying data into/out of Azure Storage. Simply generate a SAS token/URI from the Azure Portal, Storage Explorer or one of the other Azure tools and append to the Blob path (container/virtual directory/blob path).
33
+
AzCopy requires the use of SAS tokens when copying data into/out of Azure Storage. Simply generate a SAS token/URI from the Azure Portal, Storage Explorer, or one of the other Azure tools and append to the Blob path (container/virtual directory/blob path).
To see help menu for the available commands, run following commands:
41
-
42
-
./azcopy cp
43
-
./azcopy make
44
-
./azcopy rm
45
-
./azcopy sync
46
-
./azcopy ls
47
-
48
-
Each transfer operation will create a `Job` for AzCopy to act on. You can view history of jobs using the following command:
35
+
### Getting started
49
36
50
-
./azcopy jobs list
37
+
AzCopy is self-documenting. To list the available commands, run:
38
+
```
39
+
./azcopy -h
40
+
```
51
41
52
-
You can also resume a failed/cancelled job using its identifier along with the SAS token.
42
+
To view the help page and examples, run:
43
+
```
44
+
./azcopy <cmd> -h
45
+
```
53
46
54
-
./azcopy jobs resume <jobid> --source-sas ?sastokenhere
55
-
56
-
Job database is located under ~/.azcopy directory on Linux, and %USERPROFILE%\AppData\Local\AzCopy on Windows. You can clear the database after AzCopy completes the transfer.
Each transfer operation will create a `Job` for AzCopy to act on. You can view the history of jobs using the following command:
63
+
```
64
+
./azcopy jobs list
65
+
```
66
+
67
+
The job logs and data are located under the $HOME/.azcopy directory on Linux, and %USERPROFILE%\.azcopy on Windows. You can clear the job data/logs if you wish after AzCopy completes the transfers.
57
68
58
69
### Copy data to Azure storage
70
+
The copy command can be used to transfer data from the source to the destination. The locat can be a:
The following command will upload all files under `directory1` recursively to the path at `https://myaccount.blob.core.windows.net/mycontainer/directory1`.
The following command will upload all files directly under `directory1` without recursing into sub-directories, to the path at `https://myaccount.blob.core.windows.net/mycontainer/directory1`.
The following will download all Blob container contents into the local file system. `mycontainer` directory will not be created in the destination because the globbing pattern looks for all paths inside `mycontainer` in the source rather than the `mycontainer` container itself.
The following command will download all txt files in the source to the `directory1` path. Note that AzCopy will scan the entire source and filter for `.txt` files. This may take a while when you have thousands/millions of files in the source.
### Copy data between Azure Storage accounts (currently supports Block Blobs only)
94
117
95
118
Copying data between two Azure Storage accounts make use of the PutBlockFromURL API, and does not use the client machine's network bandwidth. Data is copied between two Azure Storage servers. AzCopy simply orchestrates the copy operation.
0 commit comments