@@ -52,7 +52,7 @@ For detailed reference docs see [azcopy copy](storage-ref-azcopy-copy.md).
52
52
53
53
| | |
54
54
| --------| -----------|
55
- | ** Syntax** | ` azcopy copy '<local-file-path>' 'https://<storage-account-name>.file.core.windows.net/<file-share-name>/<file-name>? <SAS-token>' ` |
55
+ | ** Syntax** | ` azcopy copy '<local-file-path>' 'https://<storage-account-name>.file.core.windows.net/<file-share-name>/<file-name><SAS-token>' ` |
56
56
| ** Example** | ` azcopy copy 'C:\myDirectory\myTextFile.txt' 'https://mystorageaccount.file.core.windows.net/myfileshare/myTextFile.txt?sv=2018-03-28&ss=bjqt&srs=sco&sp=rjklhjup&se=2019-05-10T04:37:48Z&st=2019-05-09T20:37:48Z&spr=https&sig=%2FSOVEFfsKDqRry4bk3qz1vAQFwY5DDzp2%2B%2F3Eykf%2FJLs%3D' ` |
57
57
58
58
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 ` .
@@ -63,7 +63,7 @@ This example copies a directory (and all of the files in that directory) to a fi
63
63
64
64
| | |
65
65
| --------| -----------|
66
- | ** Syntax** | ` azcopy copy '<local-directory-path>' 'https://<storage-account-name>.file.core.windows.net/<file-share-name>? <SAS-token>' --recursive ` |
66
+ | ** Syntax** | ` azcopy copy '<local-directory-path>' 'https://<storage-account-name>.file.core.windows.net/<file-share-name><SAS-token>' --recursive ` |
67
67
| ** Example** | ` azcopy copy 'C:\myDirectory' 'https://mystorageaccount.file.core.windows.net/myfileshare?sv=2018-03-28&ss=bjqt&srs=sco&sp=rjklhjup&se=2019-05-10T04:37:48Z&st=2019-05-09T20:37:48Z&spr=https&sig=%2FSOVEFfsKDqRry4bk3qz1vAQFwY5DDzp2%2B%2F3Eykf%2FJLs%3D' --recursive ` |
68
68
69
69
To copy to a directory within the file share, just specify the name of that directory in your command string.
@@ -80,7 +80,7 @@ You can upload the contents of a directory without copying the containing direct
80
80
81
81
| | |
82
82
| --------| -----------|
83
- | ** Syntax** | ` azcopy copy '<local-directory-path>/*' 'https://<storage-account-name>.file.core.windows.net/<file-share-name>/<directory-path>? <SAS-token> ` |
83
+ | ** Syntax** | ` azcopy copy '<local-directory-path>/*' 'https://<storage-account-name>.file.core.windows.net/<file-share-name>/<directory-path><SAS-token> ` |
84
84
| ** Example** | ` azcopy copy 'C:\myDirectory\*' 'https://mystorageaccount.file.core.windows.net/myfileshare/myFileShareDirectory?sv=2018-03-28&ss=bjqt&srs=sco&sp=rjklhjup&se=2019-05-10T04:37:48Z&st=2019-05-09T20:37:48Z&spr=https&sig=%2FSOVEFfsKDqRry4bk3qz1vAQFwY5DDzp2%2B%2F3Eykf%2FJLs%3D" ` |
85
85
86
86
> [ !NOTE]
@@ -96,7 +96,7 @@ Use the [azcopy copy](storage-ref-azcopy-copy.md) command with the `--include-pa
96
96
97
97
| | |
98
98
| --------| -----------|
99
- | ** Syntax** | ` azcopy copy '<local-directory-path>' 'https://<storage-account-name>.file.core.windows.net/<file-share-or-directory-name>? <SAS-token>' --include-path <semicolon-separated-file-list> ` |
99
+ | ** Syntax** | ` azcopy copy '<local-directory-path>' 'https://<storage-account-name>.file.core.windows.net/<file-share-or-directory-name><SAS-token>' --include-path <semicolon-separated-file-list> ` |
100
100
| ** Example** | ` azcopy copy 'C:\myDirectory' 'https://mystorageaccount.file.core.windows.net/myfileshare?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' --include-path 'photos;documents\myFile.txt' ` |
101
101
102
102
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.
@@ -109,7 +109,7 @@ Use the [azcopy copy](storage-ref-azcopy-copy.md) command with the `--include-pa
109
109
110
110
| | |
111
111
| --------| -----------|
112
- | ** Syntax** | ` azcopy copy '<local-directory-path>' 'https://<storage-account-name>.file.core.windows.net/<file-share-or-directory-name>? <SAS-token>' --include-pattern <semicolon-separated-file-list-with-wildcard-characters> ` |
112
+ | ** Syntax** | ` azcopy copy '<local-directory-path>' 'https://<storage-account-name>.file.core.windows.net/<file-share-or-directory-name><SAS-token>' --include-pattern <semicolon-separated-file-list-with-wildcard-characters> ` |
113
113
| ** Example** | ` azcopy copy 'C:\myDirectory' 'https://mystorageaccount.file.core.windows.net/myfileshare?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' --include-pattern 'myFile*.txt;*.pdf*' ` |
114
114
115
115
You can also exclude files by using the ` --exclude-pattern ` option. To learn more, see [ azcopy copy] ( storage-ref-azcopy-copy.md ) reference docs.
@@ -140,14 +140,14 @@ For detailed reference docs see [azcopy copy](storage-ref-azcopy-copy.md).
140
140
141
141
| | |
142
142
| --------| -----------|
143
- | ** Syntax** | ` azcopy copy 'https://<storage-account-name>.file.core.windows.net/<file-share-name>/<file-path>? <SAS-token>' '<local-file-path>' ` |
143
+ | ** Syntax** | ` azcopy copy 'https://<storage-account-name>.file.core.windows.net/<file-share-name>/<file-path><SAS-token>' '<local-file-path>' ` |
144
144
| ** Example** | ` azcopy copy 'https://mystorageaccount.file.core.windows.net/myfileshare/myTextFile.txt?sv=2018-03-28&ss=bjqt&srs=sco&sp=rjklhjup&se=2019-05-10T04:37:48Z&st=2019-05-09T20:37:48Z&spr=https&sig=%2FSOVEFfsKDqRry4bk3qz1vAQFwY5DDzp2%2B%2F3Eykf%2FJLs%3D' 'C:\myDirectory\myTextFile.txt' ` |
145
145
146
146
### Download a directory
147
147
148
148
| | |
149
149
| --------| -----------|
150
- | ** Syntax** | ` azcopy copy 'https://<storage-account-name>.file.core.windows.net/<file-share-name>/<directory-path>? <SAS-token>' '<local-directory-path>' --recursive ` |
150
+ | ** Syntax** | ` azcopy copy 'https://<storage-account-name>.file.core.windows.net/<file-share-name>/<directory-path><SAS-token>' '<local-directory-path>' --recursive ` |
151
151
| ** Example** | ` azcopy copy 'https://mystorageaccount.file.core.windows.net/myfileshare/myFileShareDirectory?sv=2018-03-28&ss=bjqt&srs=sco&sp=rjklhjup&se=2019-05-10T04:37:48Z&st=2019-05-09T20:37:48Z&spr=https&sig=%2FSOVEFfsKDqRry4bk3qz1vAQFwY5DDzp2%2B%2F3Eykf%2FJLs%3D' 'C:\myDirectory' --recursive ` |
152
152
153
153
This example results in a directory named ` C:\myDirectory\myFileShareDirectory ` that contains all of the downloaded files.
@@ -158,7 +158,7 @@ You can download the contents of a directory without copying the containing dire
158
158
159
159
| | |
160
160
| --------| -----------|
161
- | ** Syntax** | ` azcopy copy 'https://<storage-account-name>.file.core.windows.net/<file-share-name>/*? <SAS-token>' '<local-directory-path>/' ` |
161
+ | ** Syntax** | ` azcopy copy 'https://<storage-account-name>.file.core.windows.net/<file-share-name>/*<SAS-token>' '<local-directory-path>/' ` |
162
162
| ** Example** | ` azcopy copy 'https://mystorageaccount.file.core.windows.net/myfileshare/myFileShareDirectory/*?sv=2018-03-28&ss=bjqt&srs=sco&sp=rjklhjup&se=2019-05-10T04:37:48Z&st=2019-05-09T20:37:48Z&spr=https&sig=%2FSOVEFfsKDqRry4bk3qz1vAQFwY5DDzp2%2B%2F3Eykf%2FJLs%3D' 'C:\myDirectory' ` |
163
163
164
164
> [ !NOTE]
@@ -174,7 +174,7 @@ Use the [azcopy copy](storage-ref-azcopy-copy.md) command with the `--include-pa
174
174
175
175
| | |
176
176
| --------| -----------|
177
- | ** Syntax** | ` azcopy copy 'https://<storage-account-name>.file.core.windows.net/<file-share-or-directory-name>? <SAS-token>' '<local-directory-path>' --include-path <semicolon-separated-file-list> ` |
177
+ | ** Syntax** | ` azcopy copy 'https://<storage-account-name>.file.core.windows.net/<file-share-or-directory-name><SAS-token>' '<local-directory-path>' --include-path <semicolon-separated-file-list> ` |
178
178
| ** Example** | ` azcopy copy 'https://mystorageaccount.file.core.windows.net/myFileShare/myDirectory?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' 'C:\myDirectory' --include-path 'photos;documents\myFile.txt' --recursive ` |
179
179
180
180
In this example, AzCopy transfers the ` https://mystorageaccount.file.core.windows.net/myFileShare/myDirectory/photos ` directory and the ` https://mystorageaccount.file.core.windows.net/myFileShare/myDirectory/documents/myFile.txt ` file. You need to include the ` --recursive ` option to transfer all files in the ` https://mystorageaccount.file.core.windows.net/myFileShare/myDirectory/photos ` directory.
@@ -187,7 +187,7 @@ Use the [azcopy copy](storage-ref-azcopy-copy.md) command with the `--include-pa
187
187
188
188
| | |
189
189
| --------| -----------|
190
- | ** Syntax** | ` azcopy copy 'https://<storage-account-name>.<blob or dfs>.core.windows.net/<container-or-directory-name>? <SAS-token>' '<local-directory-path>' --include-pattern <semicolon-separated-file-list-with-wildcard-characters> ` |
190
+ | ** Syntax** | ` azcopy copy 'https://<storage-account-name>.<blob or dfs>.core.windows.net/<container-or-directory-name><SAS-token>' '<local-directory-path>' --include-pattern <semicolon-separated-file-list-with-wildcard-characters> ` |
191
191
| ** Example** | ` azcopy copy 'https://mystorageaccount.blob.core.windows.net/mycontainer/FileDirectory?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' 'C:\myDirectory' --include-pattern 'myFile*.txt;*.pdf*' ` |
192
192
193
193
You can also exclude files by using the ` --exclude-pattern ` option. To learn more, see [ azcopy copy] ( storage-ref-azcopy-copy.md ) reference docs.
@@ -217,28 +217,28 @@ For detailed reference docs, see [azcopy copy](storage-ref-azcopy-copy.md).
217
217
218
218
| | |
219
219
| --------| -----------|
220
- | ** Syntax** | ` azcopy copy 'https://<source-storage-account-name>.file.core.windows.net/<file-share-name>/<file-path>?<SAS-token>' 'https://<destination-storage-account-name>.file.core.windows.net/<file-share-name>/<file-path>? <SAS-token>' ` |
220
+ | ** Syntax** | ` azcopy copy 'https://<source-storage-account-name>.file.core.windows.net/<file-share-name>/<file-path>?<SAS-token>' 'https://<destination-storage-account-name>.file.core.windows.net/<file-share-name>/<file-path><SAS-token>' ` |
221
221
| ** Example** | ` azcopy copy 'https://mysourceaccount.file.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.file.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' ` |
222
222
223
223
### Copy a directory to another storage account
224
224
225
225
| | |
226
226
| --------| -----------|
227
- | ** Syntax** | ` azcopy copy 'https://<source-storage-account-name>.file.core.windows.net/<file-share-name>/<directory-path>?<SAS-token>' 'https://<destination-storage-account-name>.file.core.windows.net/<file-share-name>? <SAS-token>' --recursive ` |
227
+ | ** Syntax** | ` azcopy copy 'https://<source-storage-account-name>.file.core.windows.net/<file-share-name>/<directory-path>?<SAS-token>' 'https://<destination-storage-account-name>.file.core.windows.net/<file-share-name><SAS-token>' --recursive ` |
228
228
| ** Example** | ` azcopy copy 'https://mysourceaccount.file.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.file.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' --recursive ` |
229
229
230
230
### Copy a file share to another storage account
231
231
232
232
| | |
233
233
| --------| -----------|
234
- | ** Syntax** | ` azcopy copy 'https://<source-storage-account-name>.file.core.windows.net/<file-share-name>?<SAS-token>' 'https://<destination-storage-account-name>.file.core.windows.net/<file-share-name>? <SAS-token>' --recursive ` |
234
+ | ** Syntax** | ` azcopy copy 'https://<source-storage-account-name>.file.core.windows.net/<file-share-name>?<SAS-token>' 'https://<destination-storage-account-name>.file.core.windows.net/<file-share-name><SAS-token>' --recursive ` |
235
235
| ** Example** | ` azcopy copy 'https://mysourceaccount.file.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.file.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' --recursive ` |
236
236
237
237
### Copy all file shares, directories, and files to another storage account
238
238
239
239
| | |
240
240
| --------| -----------|
241
- | ** Syntax** | ` azcopy copy 'https://<source-storage-account-name>.file.core.windows.net/?<SAS-token>' 'https://<destination-storage-account-name>.file.core.windows.net/? <SAS-token>' --recursive' ` |
241
+ | ** Syntax** | ` azcopy copy 'https://<source-storage-account-name>.file.core.windows.net/?<SAS-token>' 'https://<destination-storage-account-name>.file.core.windows.net/<SAS-token>' --recursive' ` |
242
242
| ** Example** | ` azcopy copy 'https://mysourceaccount.file.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.file.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' --recursive ` |
243
243
244
244
## Synchronize files
@@ -263,7 +263,7 @@ The first file share that appears in this command is the source. The second one
263
263
264
264
| | |
265
265
| --------| -----------|
266
- | ** Syntax** | ` azcopy sync 'https://<source-storage-account-name>.file.core.windows.net/<file-share-name>?<SAS-token>' 'https://<destination-storage-account-name>.file.core.windows.net/<file-share-name>? <SAS-token>' --recursive ` |
266
+ | ** Syntax** | ` azcopy sync 'https://<source-storage-account-name>.file.core.windows.net/<file-share-name>?<SAS-token>' 'https://<destination-storage-account-name>.file.core.windows.net/<file-share-name><SAS-token>' --recursive ` |
267
267
| ** Example** | ` azcopy sync 'https://mysourceaccount.file.core.windows.net/myfileShare?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.file.core.windows.net/myfileshare?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' --recursive ` |
268
268
269
269
### Update a directory with changes to a directory in another file share
@@ -272,7 +272,7 @@ The first directory that appears in this command is the source. The second one i
272
272
273
273
| | |
274
274
| --------| -----------|
275
- | ** Syntax** | ` azcopy sync 'https://<source-storage-account-name>.file.core.windows.net/<file-share-name>/<directory-name>?<SAS-token>' 'https://<destination-storage-account-name>.file.core.windows.net/<file-share-name>/<directory-name>? <SAS-token>' --recursive ` |
275
+ | ** Syntax** | ` azcopy sync 'https://<source-storage-account-name>.file.core.windows.net/<file-share-name>/<directory-name>?<SAS-token>' 'https://<destination-storage-account-name>.file.core.windows.net/<file-share-name>/<directory-name><SAS-token>' --recursive ` |
276
276
| ** Example** | ` azcopy sync 'https://mysourceaccount.file.core.windows.net/myFileShare/myDirectory?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.file.core.windows.net/myFileShare/myDirectory?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' --recursive ` |
277
277
278
278
## Next steps
0 commit comments