Page 1 of 1

sc sync - filters should be used for deletion in dst

Posted: 11 Dec 2020 11:19
by highend
Lets assume the first sync command is:

Code: Select all

sync "R:\src", "R:\dst", 1, 0, 1, "c";
and you have a folder "_EX" somewhere in source.

This will be synced to destination (which is fine).

Second sync command:

Code: Select all

sync "R:\src", "R:\dst", 1, 0, 1, "c", "-*\_EX";
To be a real sync it should now not copy over any new "_EX" folders (that maybe were added after the first sync) but it should delete all files & folders that were excluded via the filter argument if the parameter "delete_items" is set to >= 1.