Skip to content

Commit 55a15df

Browse files
committed
Some tweaks
1 parent 2b913a6 commit 55a15df

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

articles/storage/common/storage-use-azcopy-configure.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ This section helps you perform these optimization tasks:
4343
> * Run benchmark tests
4444
> * Optimize throughput
4545
> * Optimize memory use
46-
> * Synchronize files faster
46+
> * Optimize file synchronization
4747
4848
### Run benchmark tests
4949

@@ -101,17 +101,13 @@ Express this value in gigabytes (GB).
101101
| **Linux** | `export AZCOPY_BUFFER_GB=<value>` |
102102
| **MacOS** | `export AZCOPY_BUFFER_GB=<value>` |
103103

104-
### Synchronize files faster
104+
### Optimize file synchronization
105105

106-
If you're not satisfied with the amount of time that it takes the [azcopy sync](storage-ref-azcopy-sync.md) to synchronize files between two locations, then you might be able to improve performance by using the [azcopy copy](storage-ref-azcopy-copy.md) command instead.
106+
The [sync](storage-ref-azcopy-sync.md) command compares file names and last modified timestamps before the starting the sync operation. If you have a large number of files, then you can improve performance by eliminating this up-front comparison.
107107

108-
The [sync](storage-ref-azcopy-sync.md) command compares file names and last modified timestamps before the sync operation begins. If your synchronizing a large number of files, this up-front comparison might take a significant amount of time.
108+
To accomplish this, use the [azcopy copy](storage-ref-azcopy-copy.md) command instead, and set the `--overwrite` flag to `ifSourceNewer`. Instead of an up-front comparison, files are compared as they are copied.
109109

110-
You can increase speed by eliminating this up-front comparison. To accomplish this, you can use the [azcopy copy](storage-ref-azcopy-copy.md) command and set the `--overwrite` flag to `ifSourceNewer`. This flag compares files as they are copied which can increase speed in cases where there are a large number of files to copy.
111-
112-
The [azcopy copy](storage-ref-azcopy-copy.md) command doesn't delete files from the destination, so if you want to delete files at the destination when they no longer exist at the source, then you might not want to completely replace the [azcopy sync](storage-ref-azcopy-sync.md) command with the the [azcopy copy](storage-ref-azcopy-copy.md) command.
113-
114-
However, you could periodically use the the [azcopy copy](storage-ref-azcopy-copy.md) command for better performance, and then to remove unneeded files from the destination, use the [azcopy sync](storage-ref-azcopy-sync.md) command. That way, you set the `--delete-destination` optional flag to a value of `true` or `prompt`.
110+
The [azcopy copy](storage-ref-azcopy-copy.md) command doesn't delete files from the destination, so if you want the copy operation to delete files at the destination when they no longer exist at the source, then use the [azcopy sync](storage-ref-azcopy-sync.md) command with the `--delete-destination` flag set to a value of `true` or `prompt`.
115111

116112
## Troubleshoot issues
117113

0 commit comments

Comments
 (0)