I have a nightly backup of a folder to another PC. When a file cannot be copied, for example because it is open such as a .PST file, the destination .PST (from an earlier successful backup) is gone too.
I want RoboCopy to copy all new and changed files to the destination, leaving any other files in the destination alone. In xcopy syntax, I want this:
xcopy <folderA> <folderB> /s /e /y /c /d
In RoboCopy, I'm doing this:
Robocopy \\MachineA\Data C:\BackupFolder\Data /E /COPYALL /XO /R:0 /W:0 /LOG:c:\BackupLog1.txt
When outlook.pst on MachineA\Data is not available (because it is open, for example), the destination folder also doesn't seem to have the .PST, even though it was there the previous night.
Is there an obvious error I'm making here?