Here’s one I haven’t seen yet. So I wrote a huge excludes file for both Windows and Mac, to streamline the sheer amount of stuff I back up for my users. I made a duplicate repo, which is about 8TB. I rewrote the whole thing, applying the exclude file with the following command:
It rewrote everything but one snapshot, which gives this error:
Fatal: unable to rewrite snapshot ID “66cdbf88”: cannot encode tree at “/path/to/random/file/being/excluded” without loosing [sic] information.
Now to me this suggests it isn’t necessarily corruption. What’s this mean, exactly? Can some snapshots, just by their nature, not be rewritten? That’s kind of what I’m picking up from this error message, but I thought I’d ask for confirmation. Thanks!
The error is a sanity check to ensure that rewriting a snapshot does not accidentally modify the content of a directory due to encoding problems. My guess would be that there’s a symlink somewhere which is not valid utf-8. Another possible cause might be corrupted data in the tree blob.