sc sync - filters should be used for deletion in dst

Features wanted...
Post Reply
highend
Posts: 13260
Joined: 06 Feb 2011 00:33

sc sync - filters should be used for deletion in dst

Post 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.
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

Post Reply