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]: updater always proposes to update to new major release immediately, dispite stable channel HOT 1
- [Bug]: strictDynamicAllowedOnScripts cannot be set to false
- Add detailed options for the default theme
- [feature] Allow to enforce case insensitive filenames HOT 4
- [Bug]: Auto logout with and without inactivity - 28.0.5 & 29.0.0 HOT 2
- [Bug]: 28.0.5 Integrity constraint violation: 1062 Duplicate entry
- [Bug]: dashboard app - class RegisterWidgetEvent not found after upgrade to 29 followed by downgrade to 28 HOT 7
- [Bug]: Black text on black background in Dark Mode HOT 2
- Allow arbitrary configID prefixes for user_ldap HOT 2
- [Bug]: share by mail: password not automatically set although always ask for password option enabled
- Redirect to the page that was previously open when logging in after being auto logout
- [Bug]: Very slow access to apps.nextcloud.com/api/v1/apps.json for checking app updates HOT 10
- [Bug]: background image is 404 in maintenance mode
- [Bug]: Wrong auto completion of expiration date
- [Bug]: links to files from "shared with you" do not redirect correctly HOT 1
- [Bug]: Uploading a Python venv folder generates an error message HOT 1
- [Bug]: user avatars not shown after migration to S3 Object Storage HOT 1
- Option to deactivate or restrict Drag&Drop of files/folders
- [Bug]: Tags assigned to folder, once clicked, are redirected to root/home folder instead of the tagged folder
- [Bug]: Multikey Encryption Breaks When Upgrading from NC26 to NC27 HOT 8
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.