zerobyte icon indicating copy to clipboard operation
zerobyte copied to clipboard

[Feature request] File size in the GUI

Open surdaft opened this issue 4 weeks ago • 2 comments

Description: The ability to view the file size within the GUI when reviewing a snapshot. I was backing up the home dir for my work PC, since the power supply started tripping over itself I wanted to make sure I didn't lose anything. I found that this was a pretty big backup, which is fair, and wanted to see what I could exclude to trim away the extra stuff from the backup. Targeting the large dirs first would be logical, then the extra small wins afterwards.

Image Image

TLDR; it would be good to see dir/file size

restic -r gs:repository:/ ls latest --long

surdaft avatar Nov 27 '25 08:11 surdaft

Unfortunately restic doesn't print out the size of folders when running ls. And since we are only fetching the folder when it's openend, we can't add up all the size of files as we would miss the subfolder sizes as well

nicotsx avatar Dec 06 '25 10:12 nicotsx

Ah yep I can see that, I had thought that we could make use of the NCDU option as well to potentially retrieve it in a structure that contains all the sizes, but that needs to be recursive and I can understand why we want to avoid that.

We could potentially add a (i) to there which shows a tooltip regarding how to run your own command to pipe into ncdu and see file sizes for yourself, with the caveat that it is potentially slow which is why it is not implemented in the GUI.

[!TIP] --ncdu is only implemented since v0.17.0

restic -r gs:repository:/ ls latest --ncdu | ncdu -f -
Image

surdaft avatar Dec 08 '25 10:12 surdaft