As for thesync command:
It scansfor changes and modifications in the source and target shares in parallel, and
applies the appropriate actions (remove, modify, rename, and so on) to the target to make sure that thetarget is identical to the source.
Hope this helps answer your question for more information please see below: