Deduplication Question

I’m trying to make sense of how restic works, so far I’m loving it but trying to figure it out before using it as my backup solution for my homelab.

Lets say I backup my linux files to a repo, then backup my windows files to the same repo. Is restic smart enough to tell that the files are the same even though the paths are different. From my reading of the design/calculations restic does it appears restic would know. Am I correct in this assumption?

Yes. Files are Split into content blocks and identical blocks only get stored once.

You can check out the design document which covers all of these details.