Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Show increase since last index or time period #153

Closed
herrenP opened this issue Oct 31, 2016 · 6 comments
Closed

Feature request: Show increase since last index or time period #153

herrenP opened this issue Oct 31, 2016 · 6 comments

Comments

@herrenP
Copy link

herrenP commented Oct 31, 2016

Hi,

The main reason I started using this tool is actually trying to find users that increase their home directory rapidly. It was easy in the beginning but starting to get much harder now that we have more users and I keep forgetting the initial size. :) I think it would be nice, and certainly possible?, for DUC to show the increase in % since last index or a configured time period (say 7 days ago).

@drasill
Copy link

drasill commented Nov 7, 2016

I have the same need.

I currently index the disk with a new DB file each time (something like duc index -d /path/to/duc.db.$(date +%Y-%m-%d)) so I can compare the sizes, but I'd love to sort it by size increase.

@l8gravely
Copy link
Collaborator

drasill> I have the same need.

drasill> I currently index the disk with a new DB file each time (something like duc
drasill> index -d /path/to/duc.db.$(date +%Y-%m-%d)) so I can compare the sizes, but I'd
drasill> love to sort it by size increase.

The answer might be to have a utility to diff two duc dbs and show
the differences... but I honestly don't have a good idea on how this
should be done, and I've got some other projects on my plate which
have fallen behind lately.

John

@herrenP
Copy link
Author

herrenP commented Nov 7, 2016

Oh. I thought this information was already in the DB. I do like drasills solution although I index each hour. Guess I could remove them every now and then.

Drasill: How do you show the diff? Do you just output it to a file? In my case I would like to see it in the CGI web page. Gotta think about this a bit.

@zevv
Copy link
Owner

zevv commented Nov 7, 2016

I agree this would be a nice feature, although I'm afraid it is not easy to add. Currently Duc is kind of stupid with the database: indexing is basically a write-only operation which simple overwrites all previous records during a scan. To add a size diff to the database would require a fundamental rewrite of the way data is stored and handled.

I'm closing this ticked but adding the request to a new list of nice-to-haves I'm adding so the issue list will stay a bit clean.

@zevv zevv closed this as completed Nov 7, 2016
@timsnyder
Copy link

@zevv is your list of nice-to-haves that you mentioned available for others to view and comment on or pick up for submitting a PR?

@zevv
Copy link
Owner

zevv commented Dec 22, 2016 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants