Need some help please.
What is the correct syntax to use to get RoboCopy to copy all new and changed files from one location to another. What I need to do is to copy all new and changed files and folders, including hidden and empty folders from one server to another. I'll be doing an initial manual copy of the directory to an external drive, so will need to capture the changes back to the external drive.
If the file exists on the source but not on the destination, then the file would be copied to the destination.
If the file exists on both then the file from the source should overwrite the file in the destination ONLY if the file on the source is newer, otherwise no action.
If the file exists on the destination but not on the source then it should update the destination with the new changes from the source. (but not copied to the source).
If that makes sense
What is the correct syntax to use to get RoboCopy to copy all new and changed files from one location to another. What I need to do is to copy all new and changed files and folders, including hidden and empty folders from one server to another. I'll be doing an initial manual copy of the directory to an external drive, so will need to capture the changes back to the external drive.
If the file exists on the source but not on the destination, then the file would be copied to the destination.
If the file exists on both then the file from the source should overwrite the file in the destination ONLY if the file on the source is newer, otherwise no action.
If the file exists on the destination but not on the source then it should update the destination with the new changes from the source. (but not copied to the source).
If that makes sense