On Tue, 4 Aug 2020 10:26:32 +0100 Jonathan Dowland <jon+debian-u...@dow.land> wrote:
> On Tue, Aug 04, 2020 at 01:32:24AM -0700, David Christensen wrote: > >jdupes looks interesting, and should work on any file system that > >supports hard links. I expect BorgBackup either calls jdupes or > >implements similar functionality: > > > >https://linuxcommandlibrary.com/man/jdupes.html > > I'm fairly sure Borg stores files by a hash of their contents and > maintains a separate index of names→hashes for each generation. Indeed: "To actually perform the repository-wide deduplication, a hash of each chunk is checked against the chunks cache, which is a hash-table of all chunks that already exist." https://borgbackup.readthedocs.io/en/stable/internals.html Celejar