Skip to content

Commit 4f788b8

Browse files
authored
Merge pull request #126968 from prkana/patch-2
Update storage-use-azcopy-blobs-synchronize.md
2 parents 1d54c19 + 1685caa commit 4f788b8

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

articles/storage/common/storage-use-azcopy-blobs-synchronize.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,28 @@ If you provide authorization credentials by using Microsoft Entra ID, make sure
108108
azcopy sync 'https://mysourceaccount.blob.core.windows.net/<container-name>/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.blob.core.windows.net/mycontainer/myDirectory' --recursive
109109
```
110110

111+
## Update a container with changes in another container by using a SAS token
112+
113+
The first container that appears in this command is the source. The second one is the destination.
114+
115+
If you provide a SAS token, make sure that you use a SAS token which corresponds to source and destination storage account, while using **azcopy sync**.
116+
117+
**Syntax**
118+
119+
`azcopy sync 'https://<source-storage-account-name>.blob.core.windows.net/<container-name>/<SAS-token>' 'https://<destination-storage-account-name>.blob.core.windows.net/<container-name>/<destination-SAS-token>' --recursive`
120+
121+
**Example**
122+
123+
```azcopy
124+
azcopy sync 'https://mysourceaccount.blob.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.blob.core.windows.net/mycontainer/?sv=2018-03-28&ss=qrdu&dst=mco&kp=rwdlapuc&se=2019-07-04T05:30:08Z&st=2019-07-03T21:31:10Z&spr=https&sig=CAfhgnc9gdGktvB=yzx9CAjMKeeN678yiyFwdNU092JC8%6D' --recursive
125+
```
126+
127+
> [!TIP]
128+
> If you are copying larger size of data, you can use :[Azure Storage Explorer](https://azure.microsoft.com/products/storage/storage-explorer).
129+
>
130+
> Verify size details that you have copied. On the top bar menu, choose **More** -> **Folder Statistics** to help you get the details of the Directory including the size in bytes.
131+
132+
111133
## Synchronize with optional flags
112134

113135
You can tweak your sync operation by using optional flags. Here's a few examples.
@@ -117,6 +139,9 @@ You can tweak your sync operation by using optional flags. Here's a few examples
117139
|Specify how strictly MD5 hashes should be validated when downloading.|**--check-md5**=\[NoCheck\|LogOnly\|FailIfDifferent\|FailIfDifferentOrMissing\]|
118140
|Exclude files based on a pattern.|**--exclude-path**|
119141
|Specify how detailed you want your sync-related log entries to be.|**--log-level**=\[WARNING\|ERROR\|INFO\|NONE\]|
142+
|Specify how to copy a vhd file.|**--blob-type=BlockBlob --include-pattern "*.vhd"** or **--blob-type=BlockBlob** |
143+
144+
120145

121146
For a complete list of flags, see [options](storage-ref-azcopy-sync.md#options).
122147

0 commit comments

Comments
 (0)