Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Nov 2006 15:39:56 -0500 (EST)
From:      Ensel Sharon <user@dhp.com>
To:        freebsd-fs@freebsd.org
Subject:   quota command and rsync snapshots...
Message-ID:  <Pine.LNX.4.21.0611151534140.21120-100000@shell.dhp.com>

next in thread | raw e-mail | index | archive | help

I am currently afraid of UFS2 snapshots (maybe that's rational and maybe
it's not ...) and so I am using Mike Rubel style rsync snapshots:

rm -rf day.3
mv day.2 day.3
mv day.1 day.2
cp -al day.0 day.1
rsync /source /destination/day.0

(note, GNU cp, the -al means copy everything with hard links)

You get the idea.

The question is, when I do a `du -ak` of each of the four days (day.0 -
day.3) I get roughly the same number for all of them, which is to be
expected.

However the output of `quota` for that user shows a _much_ larger number
than the `du` for each of those directories.

I would think that `quota` would show me the sum of day.0 plus (all the
total differences of day.1 - day.3) but it shows me a number _much_ larger
than that.  I really can't even guess what the number it is showing me is.

So I have two questions:  given a directory that contains one current
backup and three snapshots (day.0 - day.4) what command can I run that
will show me the total _actual_ space used ?  du will not work because it
counts up each directory as if it used all of that space...

Second, is there any way to get quota to show an accurate representation
of the users usage ?

Comments ?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0611151534140.21120-100000>