Operating Systems
An administrator must make D:\Backup an exact copy of D:\Data, deleting files from the backup that no longer exist in the source. Which command does this?
Show the answer
Correct answerA. robocopy D:\Data D:\Backup /mir
AWhy this is right: The /mir switch mirrors the tree and purges destination files no longer in the source.
BWhy not this: md only creates an empty folder and copies nothing.
CWhy not this: rmdir /s deletes a tree and does not synchronize two folders.
DWhy not this: The /e switch copies subfolders but leaves stale files in the destination, so it is not an exact copy.
Robocopy with /mir mirrors a directory tree, copying changes and purging destination files that are absent from the source. The /e switch copies subfolders, including empty ones, but does not delete extra destination files.