Conversation
|
Can you replace the example of a minimal test repo with just one snapshot with a more real world example of a bigger repo? |
|
@rawtaz here is the output from a real-life repository: Please note that I'm using |
|
IMO this closes #1047, but is a bit outdated. Just need some direction: Should I rebase this to current master? Should it be changed into an |
|
As suggested by #1047 I changed this to implement the new command |
repoinfo
|
I overworked the implementation to make it more structured and added a few flags which enable to fine-tune the output and what |
|
@maintainers: Actually, I would like to see this PR soon merged as this is one of my most-used commands in my own repositories (gives a good glance at your repo stats in one command) 😉 |
|
Added changelog and docu. |
|
We'd like to think through very carefully the commands we add to the CLI, since that's one of the harder things to change in the future. Let's discuss this PR later, for now we're focusing on other work. |
@rawtaz Alright, thanks for the feedback! I'll leave it in the current state with new command - at least that ensures it will stay easily mergable. Just come back to me if I need to change anything. Maybe we should think about a possibility to include "beta"/"experimantal" functionality, i.e. functionality where the CLI is supposed to maybe change in the future? Could then be called like |
|
rebased this PR after #2885 has been merged. |
|
I convert this to draft, as I think I should work on the following points:
Moreover the discussion about whether this is useful and whether it should be a new command or not (not to speak about a useful name) has not even started... |
|
I'm closing this as it seems not to be of interest for restic. Anyone who wants to use this |
What is the purpose of this change? What does it change?
Adds the possibility to show various repository statistics without walking trees, i.e. should be very fast.
The output looks like:
Was the change discussed in an issue or in the forum before?
No, but I needed some statistics while developing and thought it might be a good extension.
There is an issue with
restic statbecause it walks all trees for all snapshots and hence is pretty slow, see #2126. This extension does not solve this issue but is able to give repository statistics very fast.Please give me feedback if this is useful or should be complemented by something. I will then finish this PR (and add docu, etc).
If it is not useful, feel free to close this PR.
closes #1047
Checklist
changelog/unreleased/that describes the changes for our users (template here)gofmton the code in all commits