Skip to content

Commit 1456f81

Browse files
authored
Merge pull request #44 from Azure/download-links
Update README with download links
2 parents 3a0eb8a + 4d91468 commit 1456f81

File tree

1 file changed

+82
-44
lines changed

1 file changed

+82
-44
lines changed

README.md

+82-44
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
## About
44

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.
66

77
## Features
88

99
* 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
1111
* Sync a directory in local file system to Azure Blob and File shares, or vice versa
1212
* List/Remove files and blobs in a given path
1313
* 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
1616
## Installation
1717

1818
1. Download the AzCopy executable using one of the following links:
19-
* Windows x64
20-
* Linux x64
21-
* MacOS x64
19+
* [Windows x64](https://aka.ms/downloadazcopy-v10-windows)
20+
* [Linux x64](https://aka.ms/downloadazcopy-v10-linux)
21+
* [MacOS x64](https://aka.ms/downloadazcopy-v10-mac)
2222

2323
2. Unzip and get started
2424

25-
unzip azcopy-v10.0.1.zip
26-
cd azcopy-v10.0.1
27-
./azcopy
25+
* unzip azcopy_linux_amd64_10.0.0.zip
26+
* cd azcopy_linux_amd64_10.0.0
27+
* ./azcopy
2828

2929
## Manual
3030

3131
### Authenticating with Azure Storage
3232

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).
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).
3434

35-
### Simple command-line syntax
36-
37-
./azcopy <command> <source path> <destination path>
38-
./azcopy cp /path/to/local https://account.blob.core.windows.net/container?sastoken
39-
40-
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
4936

50-
./azcopy jobs list
37+
AzCopy is self-documenting. To list the available commands, run:
38+
```
39+
./azcopy -h
40+
```
5141

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+
```
5346

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.
47+
### Simple command-line syntax
48+
```
49+
# The general syntax
50+
./azcopy <cmd> <arguments> --<flag-name>=<flag-value>
51+
52+
# Example:
53+
./azcopy cp <source path> <destination path> --<flag-name>=<flag-value>
54+
./azcopy cp "/path/to/local" "https://account.blob.core.windows.net/container?sastoken" --recursive=true
55+
```
56+
57+
To see more examples:
58+
```
59+
./azcopy cp -h
60+
```
61+
62+
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.
5768

5869
### 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:
71+
1. local path
72+
2. URL to Azure Blob/Virtual Directory/Container
73+
3. URL to Azure File/Directory/File Share
74+
```
75+
./azcopy <command> <source path> <destination path>
76+
```
5977

6078
The following command will upload `1file.txt` to the Block Blob at `https://myaccount.blob.core.windows.net/mycontainer/1file.txt`.
61-
62-
./azcopy cp /data/1file.txt "https://myaccount.blob.core.windows.net/mycontainer/1file.txt?sastokenhere"
79+
```
80+
./azcopy cp /data/1file.txt "https://myaccount.blob.core.windows.net/mycontainer/1file.txt?sastokenhere"
81+
```
6382

6483
The following command will upload all files under `directory1` recursively to the path at `https://myaccount.blob.core.windows.net/mycontainer/directory1`.
65-
66-
./azcopy cp /data/directory1 "https://myaccount.blob.core.windows.net/mycontainer/directory1?sastokenhere" --recursive
84+
```
85+
./azcopy cp /data/directory1 "https://myaccount.blob.core.windows.net/mycontainer/directory1?sastokenhere" --recursive=true
86+
```
6787

6888
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`.
89+
```
90+
./azcopy cp /data/directory1/* "https://myaccount.blob.core.windows.net/mycontainer/directory1?sastokenhere"
91+
```
6992

70-
./azcopy cp /data/directory1/* "https://myaccount.blob.core.windows.net/mycontainer/directory1?sastokenhere"
71-
72-
73-
To upload into File storage, simply change the URI to Azure File URI with SAS token.
93+
To upload into File storage, simply change the URI to Azure File URI with corresponding SAS token.
7494

7595
### Copy VHD image to Azure Storage
7696

@@ -79,22 +99,26 @@ AzCopy by default uploads data into Block Blobs. However if a source file has `.
7999
### Copy data from Azure to local file systems
80100

81101
The following will download all Blob container contents into the local file system creating the directory `mycontainer` in the destination.
82-
83-
./azcopy cp "https://myaccount.blob.core.windows.net/mycontainer?sastokenhere" /data/ --recursive
102+
```
103+
./azcopy cp "https://myaccount.blob.core.windows.net/mycontainer?sastokenhere" /data/ --recursive=true
104+
```
84105

85106
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.
86-
87-
./azcopy cp "https://myaccount.blob.core.windows.net/mycontainer/*?sastokenhere" /data/ --recursive
107+
```
108+
./azcopy cp "https://myaccount.blob.core.windows.net/mycontainer/*?sastokenhere" /data/ --recursive=true
109+
```
88110

89111
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.
90-
91-
./azcopy cp "https://myaccount.blob.core.windows.net/mycontainer/directory1/*.txt?sastokenhere" /data/directory1
112+
```
113+
./azcopy cp "https://myaccount.blob.core.windows.net/mycontainer/directory1/*.txt?sastokenhere" /data/directory1
114+
```
92115

93116
### Copy data between Azure Storage accounts (currently supports Block Blobs only)
94117

95118
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.
96-
97-
./azcopy cp "https://myaccount.blob.core.windows.net/?sastokenhere" "https://myotheraccount.blob.core.windows.net/?sastokenhere" --recursive
119+
```
120+
./azcopy cp "https://myaccount.blob.core.windows.net/?sastokenhere" "https://myotheraccount.blob.core.windows.net/?sastokenhere" --recursive=true
121+
```
98122

99123
### Advanced Use Cases
100124

@@ -112,6 +136,20 @@ AzCopy creates a log file for all the jobs. Look for clues in the logs to unders
112136

113137
### View and resume jobs
114138

139+
To view the job stats, run:
140+
```
141+
./azcopy jobs show <job-id>
142+
```
143+
144+
To see the transfers of a specific status(Success or Failed), run:
145+
```
146+
./azcopy jobs show <job-id> --with-status=Failed
147+
```
148+
149+
You can resume a failed/cancelled job using its identifier along with the SAS token(s), which are not persisted for security reasons.
150+
```
151+
./azcopy jobs resume <jobid> --source-sas ?sastokenhere --destination-sas ?sastokenhere
152+
```
115153

116154
### Raise an Issue
117155

0 commit comments

Comments
 (0)