Delete Orphans
[Previous] [Main] [Next]

Command line option /D

The Delete orphans option will delete files from the specified path that don't exist on the other. Note that this option will be deactivated automatically if both source to target, /S, and target to source, /T, copying are specified.

For example:


Path A         Path B
File1
            File2
File3      
            File4

If CmdSync is to copy files from path A to path B with the delete orphans option. File1 and File3 would be copied and File2 and File4 would be deleted.

Path A         Path B
File1         File1

File3         File3
      
Example:

C:>Cmdsync d:\MyData "*.* -*.bak" e:\MyDataBackup /S /I /R /D /Lc:\mylog.txt /X