[Dirvish] Utility to show incremental usage per image within a vault

Loren M. Lang lorenl at alzatex.com
Mon May 15 17:10:01 UTC 2006

On Sat, May 06, 2006 at 12:58:59AM +0000, Matthew Pressly wrote:
> I've looked for something to do this, but have not been able to find
> anything.  Is there a utility that will run on linux that
> can be used to determine the incremental disk usage of all images
> within a vault, starting with the most recent image and going back
> in time, counting each file's size only once, regardless of the
> number of hard links to it?
> I.e., something that would produce output similar to:
>   latest 1.2GB
>   20060429 23MB
>   20060428 25MB
>   20060427 26MB
>   ...

du -smc 2*

> Basically, what I'm looking for is a way to determine how much
> each vault ties up, going backward in time from the most recent.
> 'du --max-depth=1' run at the vault level comes close, since by 
> default, it adds file size into the total only once, but the sort
> order is backward, since the most recent vault is alphabetically
> last rather than first.  On the other hand, using 
> 'du --max-depth=0 latest 20060430 20060429 ...' appears to treat
> each starting directory independently, so files linked to be 
> multple hard links are counted in each directories total, so the
> total would look more like:
>   latest 1.2GB
>   20060429 1.2GB
>   20060428 1.1GB
>   20060427 1.1GB
>   ...
> which doesn't show the true incremental cost of each image.
> Is there some way to do this with 'du', or is there another tool
> that will do this?
> -- 
> Matthew

Loren M. Lang
lorenl at alzatex.com

Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc
Fingerprint: CEE1 AAE2 F66C 59B5 34CA  C415 6D35 E847 0118 A3D2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.dirvish.org/pipermail/dirvish/attachments/20060515/a6e7b5c7/attachment.sig>

More information about the Dirvish mailing list