boutilpj at ednet.ns.ca
Thu May 27 13:16:44 EDT 2004
Andrew Morgan wrote:
> On Thu, 27 May 2004, Philip Chambers wrote:
>>I am writing a utility to give me a list of filespace usage for all my cyrus users.
>>This will be run by cron overnight. Clearly I can just go through all the
>>partitions and do a "du -sk" at each user's root directory.
>>However, since cyrus has a quota facility it seems likely that cyrus must record
>>each user's current usage somewhere. I have had a quick look at the code, but it is
>>not obvious to me where that information is stored. Can someone point me to where
>>cyrus stores user filespace usage?
> su cyrus -c '/usr/local/cyrus/bin/quota'
> Or wherever you copy of Cyrus' quota command is kept.
However if you don't have quotas enabled that won't help.
> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
More information about the Info-cyrus