Personal tools
You are here: Home Knowledge Computing dirvish image disk usage

Computing dirvish image disk usage

It's sometimes hard to detect the size of a dirvish backup image; here's one way to do it.


dirvish is a fantastic backup system that we use extensively.  It's very easy to create many incremental snapshots with it.  One minor problem is determining the disk space that each snapshot actually uses.

This shell script:

for dir in /path-to-vault/* ; do 
sum=0
for s in `find $dir -type f -links 1 -print0 | xargs -0 stat -c '%s'` ; do
sum=`expr $sum + $s`
done
echo $dir $sum
done

will tell you the size, in bytes, of files that belong only to a single snapshot.

Document Actions
Technology Questions or Problems?

Get Technology Support from Experienced Pros

Professional, prompt service. Competitive pricing. Practical, real-world solutions that save you time and money.

Learn more...

Computer Pros

Discover
How To Stop
The Competition From Eating Your Lunch


Read more...

« August 2010 »
August
SuMoTuWeThFrSa
1234567
891011121314
15161718192021
22232425262728
293031
 
x Computer Pros - Interstitial Page with Flash

Computer Pros:
Discover How To Stop
The Competition From
Eating Your Lunch

Welcome and thanks for stopping by!

Join Our Free Online Study Group And
You Will Learn How To:
 • Become an "In Demand" IT Pro
 • Earn More - Because You Deserve It
 • Improve Your Job Hunting Skills
 • Find Out What Employers and Clients Want
No Obligation - Cancel Anytime
Name
Email