I would like to clean up my backups since there are a lot of files which I don't need to access anymore (e.g. videos, podcasts and installation packages). The problem I am facing is however that I don't know which snapshots contain these large files and in which directories I used to store them. Is there perhaps a way to list the largest files in the Time Machine backup, similar to Grand Perspective or Disk Inventory X?
Yes - you can find large files in many ways.
In the finder search field type size:>9000 and add a size field if you wish in the list view to sort descending. Add zeroes to the number to get less results back for your file sizes.
This doesn't work well for network backups in my experience due to lag or incomplete spotlight databases. If that doesn't work, get a tool made to analyze Time Machine backups like BackupLoupe. It is crafted specifically to efficiently scan time machine backup drives and network volumes. It creates a comprehensive backup database of all the files and revisions that would make your size query a snap.
- Install the app
- Let it index one or more intervals
- Use the app's find window to sort on size after setting the search criteria as follows: Type is directory and match type of none of the following is true
It also helps to reveal the files in Finder so you could decide to remove that file across backups or just to delete that interval entirely.
- Remove unnecessary backups from TimeMachine to get space
- How can I manually delete old backups to free space for Time Machine?
Since Time Machine stores each backup in folders, you could unleash any other tool (DaisyDisk, Grand Perspective, WhatSize or other) on the backup, but they don't know how to interpret hard links and may take days or months to make a picture that doesn't represent the actual storage allocations.
BackupLoupe is smarter than the existing tools and doesn't double count hard linked files. It also runs in the background if you wish. Lastly, it reads a database file summarizing the backups so the results are near instantaneous and you don't even need the backup drive mounted to do the reporting.
I see two questions in your post, the title "Is there a way to list the largest files and folders in Time Machine backups?" and the one in the body, "Is there perhaps a way to list the largest files in the Time Machine backup, similar to Grand Perspective or Disk Inventory X?"
There is no Time Machine specific software that I'm aware of that providers the perspective/view of the disk of the Time Machine Backup which Grand Perspective or Disk Inventory X provides and therefore I have to say the answer to the latter question is no.
As to the question in the title and aside from various third party apps that do provide various functions you can also just enter Time Machine and do a search through the Finder window using the Search dialog to formulate various queries, around e.g. size, and use the Size column to rack from large to small, etc.