If the title didn't make much sense then, let me provide more details. My problem is that there are some identical files on both drives already, but they reside in different directories. Let me show you an example:
Here are two identical files that don't have the same directory path, C: being the drive from which the folder structure should be duplicated:
C:\Users\Public\photo25.jpg
E:\Users\Public\New folder\photo25.jpg
Suggesting me to use robocopy with /MIR switch won't do the trick because, it won't assume that those two files I just mentioned are identical since they lie under different folders. So, to repeat my question, how can I first move files on the backup drive that are identical to files on the main drive to match their folder structure of the main drive and only then copy files that only exist on the main drive onto the backup drive and also get a report on which folders on the backup drive have been renamed/deleted in order to match the folder structure of the main drive?