[owncloud-devel] Getting information about quota and used space

Vincent Petry pvince81 at owncloud.com
Mon May 26 07:36:23 GMT 2014


Hello,

You can find the used space in the oc_filecache table, the size of the
"files" folder (other metadata/files are excluded from the quota
calculation)

Cheers,

Vincent

On 05/24/2014 10:08 PM, Alexander Födisch wrote:
> Hi,
>
> I would like to generate an overview of all user accounts created at
> our ownCloud server with following values:
>
> username - quota - used space
>
>
> quota:
> SELECT configvalue FROM <db>.oc_preferences where configkey='quota'
> and userid='<accountname>';
>
>
> If there is a hit, I use it, otherwise the default value is set for
> this user:
> SELECT configvalue FROM <db>.oc_appconfig where appid='files' and
> configkey='default_quota';
>
>
> But where can I find the information about used space of the user
> accounts?
>
> Thanks!
> _______________________________________________
> Devel mailing list
> Devel at owncloud.org
> http://mailman.owncloud.org/mailman/listinfo/devel



More information about the Devel mailing list