Giter Site home page Giter Site logo

Comments (11)

Spacefish avatar Spacefish commented on May 5, 2024 3

Maybe it´s possible to compute the Quota of each user in a background cronjob? Just add a "last_quota_calc" column to the users table. If last_quota_calc < last_action in activity, the quota is recalculated.

from server.

soamz avatar soamz commented on May 5, 2024 1

is it implemented yet ?

How do we see users usage ?

from server.

MariusBluem avatar MariusBluem commented on May 5, 2024

owncloud/core#12602

cc @MorrisJobke @LukasReschke

from server.

MorrisJobke avatar MorrisJobke commented on May 5, 2024

The problem here was that it wasn't easy to fetch all the quota without mounting all the home directories of each user. I think we have done a lot there. Maybe worth to look into this again.

from server.

MorrisJobke avatar MorrisJobke commented on May 5, 2024

@icewind1991 Is it nowadays easier to get the quota?

from server.

johanehnberg avatar johanehnberg commented on May 5, 2024

For those looking for a way to at least detect when someone hits their limit, here is a one-liner that you can put in cron.daily or similar:

grep InsufficientStorage nextcloud.log | grep `date '+%Y-%m-%d' -d yesterday` | jq -r .time,.user | paste - - | uniq

It checks for any user who maxed out during the previous day. It requires jq to be installed beyond what is usually included in distros.

from server.

johanehnberg avatar johanehnberg commented on May 5, 2024

The color bar could have two levels: one for active storage (equivalent of du -sh username/files) and another for total storage which includes versions, trashbin and any other app that makes use of remaining quota (somewhat similar to du -sh username).

from server.

enoch85 avatar enoch85 commented on May 5, 2024

It's possible at least in ownCloud to get user quota via an API call: owncloud/core#26829 (comment)
owncloud/core#1344

And a better screenshot:
07ef3174-c58b-11e3-91f0-dda715afda5e

Also a SQL query to get the used space for all users:
owncloud/core#1344 (comment) & owncloud/core#1344 (comment)

from server.

MorrisJobke avatar MorrisJobke commented on May 5, 2024

is it implemented yet ?

As this ticket is still open: no.

How do we see users usage ?

Currently not possible.

from server.

icewind1991 avatar icewind1991 commented on May 5, 2024

PR is here: #5342

from server.

linucksrox avatar linucksrox commented on May 5, 2024

Thanks @icewind1991! This is totally awesome, and I really like how you can hover to get a more accurate idea of the used space. One small thing I noticed is that the last login column starts to overlap at about 1390px width or less in Chrome, but I bet some CSS magic could fix that.

from server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.