Comments (11)
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.
is it implemented yet ?
How do we see users usage ?
from server.
from server.
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.
@icewind1991 Is it nowadays easier to get the quota?
from server.
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.
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.
It's possible at least in ownCloud to get user quota via an API call: owncloud/core#26829 (comment)
owncloud/core#1344
Also a SQL query to get the used space for all users:
owncloud/core#1344 (comment) & owncloud/core#1344 (comment)
from server.
is it implemented yet ?
As this ticket is still open: no.
How do we see users usage ?
Currently not possible.
from server.
PR is here: #5342
from server.
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)
- [Bug]: CalDav Array to string conversion HOT 1
- files: Add a checkmark and a cross button when renaming to cancel or validate the rename
- feat: add an aadditional "checkmark" / "cross" icon-only button on the right inside the rename input field for files app HOT 2
- [Bug]: New folder set focus to input field? HOT 2
- [Bug]: Error while synchronizing if ends with an `x` HOT 2
- Add debug occ command to check that the LDAP group membership is correctly configured
- [Bug]: Excessive database usage while deleting single file
- [Bug]: Hash in filename (e.g. #foo.docx) breaks web interface download
- [Bug]: When changing the permissions of a share to can edit and reloading the page, custom permissions is displayed
- [Bug]: Change menu items' text to light when custom background is used
- Feat/Bug - Persistent retry of 'Wipe All Devices'
- Add CSS id for file types?
- [Bug]: CSP for script-src with nonce on Yandex.Browser HOT 1
- [Bug]: "Reset status" is being reverted to automatic status HOT 4
- [Bug]: Previews of HDR videos being generated are washed out (needs tonemap?) HOT 1
- [Bug]: Cannot get LDAP to work
- [Bug]: File(/var/www/nextcloudapps//core/l10n/en.js) is not within the allowed path(s) at /var/www/nextcloud/lib/private/Template/ResourceLocator.php#100 HOT 1
- [Bug]: click on a favorite folders shows an empty folder HOT 4
- [Bug]: Setting db password with `occ` does not work if you nextcloud does not have access to the db. HOT 1
- [Bug]: 29 RC4, photos and media are not displayed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from server.