How can I use rsync (or another program) to delete identical files between directories? To be identical, location and metadata should match (permissions, ownership, timestamp)
For example, I backup dir X to Y. After time, there are files added and removed in X.
I want to remove from X all files/directories that match identically in Y. Do not touch files in X that are different.
Note: I'm familiar with jdupes, but I'm not trying to delete just any identical files. I want to delete files that also are identical in directory location and filename.