The Apple File System has some support for data deduplication.
You can create a copy-on-write clone of a file, using no extra disk space
(until you start modifying either the original or the clone). Read More
Craziest thing I ever used SQLite for: partial file deduplication
