Using robocopy or xcopy to copy only missing (extra) files
Posted on 2009-05-18
I am using robocopy with the /mir switch to mirror my data onto a NAS drive. It works beautifully, but if I accidentally delete a file in the source and then run my robocopy script then this file is lost for good. What I would like to do is identify all extra files (ie all files that exist in the destination but not in the source) and run a first sweep to copy these files somewhere before running the mirror. In this way my mirror is nice and neat, but if I have accidentally deleted a file then I have it backed up. Any ideas...I'm starting to think this is not possible and it would seem a fairly obvious thing to want to do.
Many thanks for your help