How to find the largest files in your latest backup

“Also, find-restic-anchor doesn’t list files that don’t exist locally anymore, and it shows the current local size of the files, not necessarily the size they were when they were backed up.”

This is actually quite a strong restriction as you never know what you miss here… I suggest you combine with a ls run and capture the sizes from the snapshot.

Also, instead of showing the on-disc-size of the files, a better information would be to show the size-added-to-repository as this is the interesting information (though in many cases the two will correlate).

The problem is, that with restic there is a no functionality which shows or enables to extract that needed information on a file basis, AFAIK.

FWIW, as a coincidence I started to implement exactly this functionality in rustic recently, see this rustic Discussion. To try it out, get the latest nightly build and use the interactive mode:

  • run rustic snapshots -i
  • select the snapshot
  • type D to get to the diff view (diff with parent snapshot is default)
  • either directly navigate through the changes or type s to compute summaries over all sub-dirs.
  • note that d toggles view of identical entries and m toggles ignoring only metadata changes