[Dirvish] examining disk space usage per image...need script or rsync parameter
dirvish at rain4us.net
Thu Dec 29 20:11:44 UTC 2005
but I'm trying to make it easy to see what is was that got backed up and
how much disk space it is eating up. When there are so many
'brazilian'(sic) files in an image, it's hard to find out what changed.
Now... I originally composed the message below..and I'm still curious
about why DU works that way..but in finishing the last message I had the
inspiration to look at the dirvish logs. I see now that $image/log.gz
contains the files that were RSYNC'ed for each image. Does anyone have
a script that reports file sizes of the files rsync'ed in a given image
or is there a way to have dirvish add that to the log?
---originally composed message---
Subject: 'du' disk space reporting weirdness
This may be off topic..as it is probably more a general admin question
than a dirvish specific one.
I know what I'm seeing, but I don't know what it's called...so I don't
know what to GOOGLE for.... I don't even know what I'm asking so I'll
just have to explain what I see.
'du' calculates disk space correctly if I check the size of all of the
root at gwibkp:/banks/bugsbunny# du --max-depth=1 -h
'du' even calculates correctly when I check the size of each image
root at gwibkp:/banks/bugsbunny/gwifs-home# du --max-depth=1 -h
But if I go into the image directory.. 'du' calculates ALL of the disk
space of every hardlink and sums it together!
root at gwibkp:/banks/bugsbunny/gwifs-home/2005-06-01# du --max-depth=1 -h
why do the first two examples calculate the size of the files that
represent the hard links and the last example calculates the actual
disk space used BY the hard links?
What am I asking?
More information about the Dirvish