-
Notifications
You must be signed in to change notification settings - Fork 187
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
Add cli to remove versions #9472
Comments
Would it be possible to add a flag for deleting all old revisions of one particular file? Is the new CLI command able to detect and purge orphan revisions of deleted files? |
Not in the scope in of this ticket. This is about removing ALL revisions after disabling versioning. What is the usecase of this scenario?
Those should not exist. When a file is deleted the revision should be deleted as well. If this is not the case it is a bug. To detect orphaned blobs/nodes or other inconsistencies, one should use the |
The primary motivation for this request is to get some control over the disc usage by spaces. Let’s take as an example one of my installations. Three spaces, each with the limit of 1GB, no personal folders. One space size is 395MB, the second 59MB and the last 41 MB = 485MB in total. |
I see. I think the proper solution would be to make it possible to configure a maximum amount of revisions per file. It could remove the oldest version once it hits this limit. If that is something you would like, please open a Feature Request for it. I think others could also benefit of such a feature. As for the immediate problem, I could simply add a |
It’s perfect, thank you! What would be an appropriate way to get a file id, preferably via the web interface? Or could you display a file id with the
|
Unfortunately I cannot print the fileid with this command as I am missing essential information. It can be obtained through inspecting web requests (should be in every PROPFIND) or looking into the logs. Here is an example for one:
I am afraid there is no simpler way to acquire this information right now. This would need another feature request.
Please open a feature request for this, my paygrade is not hight enough to decide on such features ;)
This sounds a very large discrepancy. It would be interesting to know if |
Scratch that. I found a way to print the fileid within the command. Will be visible when used with I also added possibility to remove all versions on one space - just because it was easily doable. |
That is marvelous! Thank you very much!
I am afraid, it does not work for me right away:
|
The backup consistency command needs ocis v5 at least. Thanks for the feature request. I'll push it when I get a chance! |
Follow up of #9282
We want a cli command to delete all revisions on a storage provider. This is needed for user who use the new
DisableVersioning
feature and want to clean up their storage. (aka "delete all old versions of my files")Acceptance criteria:
--dry-run
flag that doesn't actually delete the revisions but only prints what it would delete.@rhafer @micbar @tbsbdr any more acceptance criteria?
The text was updated successfully, but these errors were encountered: