Copy only existing files with robocopy

the service runs on many servers, and on some machines I need a different set of plugins than on other machines for this service.

All of these hosts already have a folder with some plug-in files needed for this host. Now I need to update them from one source.

It is important that robocopy only copy a file from a source that is already in a folder on the server, and not any additional files.

I thought the / XX flag would do this, but that would not work for me.

This is the command I used:

robocopy <src> <dst> /E /XX /NP 

Which team would be suitable for me?

EDIT: Well, the German translation is a little bad. The original english help from robocopy tells me exactly what to use:

 /XL : eXclude "Lonely" files and dirs (present in source but not destination) This will prevent any new files being added to the destination. 

(Translated into German, the very useful part "is present in the source but not in the destination" is not indicated)

+7
source share
1 answer

Well, the German translation is a little bad. The original english help from robocopy tells me exactly what to use:

 /XL : eXclude "Lonely" files and dirs (present in source but not destination) This will prevent any new files being added to the destination. 

(Translated into German, the very useful part "is present in the source but not in the destination" is not indicated)

+10
source

All Articles