sc sync - filters should be used for deletion in dst
Posted: 11 Dec 2020 11:19
Lets assume the first sync command is:
and you have a folder "_EX" somewhere in source.
This will be synced to destination (which is fine).
Second sync command:
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.
Code: Select all
sync "R:\src", "R:\dst", 1, 0, 1, "c";
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";