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: articles/storage/common/storage-use-azcopy-configure.md
+5-9Lines changed: 5 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ This section helps you perform these optimization tasks:
43
43
> * Run benchmark tests
44
44
> * Optimize throughput
45
45
> * Optimize memory use
46
-
> *Synchronize files faster
46
+
> *Optimize file synchronization
47
47
48
48
### Run benchmark tests
49
49
@@ -101,17 +101,13 @@ Express this value in gigabytes (GB).
101
101
|**Linux**|`export AZCOPY_BUFFER_GB=<value>`|
102
102
|**MacOS**|`export AZCOPY_BUFFER_GB=<value>`|
103
103
104
-
### Synchronize files faster
104
+
### Optimize file synchronization
105
105
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.
107
107
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.
109
109
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`.
0 commit comments