I have a scenario where I have a recovery from a drive from possibly a different point in time that is not only potentially different in terms of files being present, but also there was some corruption where a number of files are obviously corrupt.
We'll call the left folder "A" and the right folder "B".
It falls to me to merge these two images such that:
- any files that are present in B that are not in A should be moved to A, and
- any files that are present in both locations and are the same should be deleted from B, and finally
- any files that have differences in checksum should remain in B such that these different files can be manually compared between A and B, but nothing else should be left in B except for these files that have different checksums (ie, actual contents).
NOTE: Dates are pretty much immaterial at this point, although it would be nice to preserve the older date in the metadata.
How can this be done cleanly? Unfortunately I have to do this for several tens of TB of data and thus it will be a very lengthy process if I do not figure out how to automate this. It appears that 90-95% of the contents ARE the same, so a "set it and forget it" method should work out for preparation to do the manual comparison.