-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Analyze/show disk space used by snapshots #406
Comments
(by danleweb) Regards, |
(by tmetro+ubuntu) I just tried this, and it apparently does intelligently report space used by hard linked files only once. If you look at the attached screen shot, you'll see my initial snapshot from November is taking up 50% (69 GB) of the relative space (138 GB total), then one from February is taking up 36% (49 GB), and then most of the subsequent snapshots are taking up 2% or less. Although "Disk Usage Analyzer" thinks the February backup has a significant quantity of unique files, I don't expect this is reality, and I think it is more a side effect of the order in which "Disk Usage Analyzer" happened to process the files. When it runs across a hard linked file, I don't know whether it assigns the space it takes up to the first or last directory it is found in. And I don't know if it processes the directories in sorted order. In order for the report to make most sense for BiT you'd want it to process the directories in a consistent order - lets say ascending alpha-numeric - and then assign space for linked files to the first directory in which they are encountered. It would seem that with a few tweaks to the "Disk Usage Analyzer" source this could easily be accomplished, and then BiT could include a button that launches "Disk Usage Analyzer" pointed at the directory containing the snapshots for the current profile. It would be a fairly small amount of integration effort for a nice functionality gain. |
I think this is a useful feature to have, as it would greatly help with snapshot and disk space management. Note that you can already do this manually outside of backintime (at least on Linux, as far as I'm aware), by simply using For example, here's my snapshots directory:
(Interestingly, it's almost the same issue as with filesystem snapshots in ZFS. They are incremental in nature (because ZFS is a copy-on-write filesystem), and space usage per snapshot is a big topic for many users of the filesystem.) Even though |
Oh, and let's not forget #1162 as a good idea to implement this :) |
My use case would be: How much disk space would be freed by deleting snapshot X? (I'd call this the inner size.) For this, the output of |
It would be very useful to be able to browse backups by actual size (with dereferenced hardlinks) and by files that were explicitly modified. I make full disk backup using BiT and would like to see what takes a lot of room (to possibly exclude some directories that only contain dynamic data). It would also be really helpful to know if a file is part of a specific snapshot or a hardlink from an older snapshot.
Imported from Launchpad using lp2gh.
The text was updated successfully, but these errors were encountered: