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

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.

Here's a presentation we gave on using dirvish.

Don't Let the Economy
Slow You Down

You've just found dedicated experts who can help. Learn how you can work smarter with less stress.

1. Discover better ways to achieve your business goals and regain control.

2. Learn proven ideas from professionals dedicated to your success.

3. Take action and move forward - just fill out this quick form:


First Name

Last Name

Company

Phone

Email
We like privacy and won't share your information.