[feature] occ trashbin:restore should support Groupfolders #39724
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
enhancement
feature: occ
feature: trashbin
Is your feature request related to a problem? Please describe.
Since #28935 we have the possibility to restore deleted files from the trashbin via
php occ trashbin:restore
. Unfortunately, like also stated in the docs, this command is currently not able to restore files which have been deleted from Groupfolders.Describe the solution you'd like
It would be great if the command would also be able to restore files which have been deleted from Groupfolders. I could imagine adding a new flag
--scope
with valuesuser
,groupfolders
orall
, which controls the scope of the restore. For backward compatibility the default should be set touser
.Describe alternatives you've considered
Currently there's no (comfortable) way of restoring a huge amout of deleted files from Groupfolders.
Additional context
One of our customers make use of the NC sync client combined with Groupfolders. In the past some users accidentally deleted huge folders on their local systems and when they got synced, all the files have been gone for everyone. The only possibility to restore these files right now was to use a backup and do a partial restore to the disk, adjusting file permissions, re-reading the files into Groupfolders etc. Restore via UI was not feasible since we're talking about a few thousand files.
Contribution
If you're willing to accept this new feature, I'd be happy to implement it 👍 I just wanted to check your opinion before going into further implementation detail.
The text was updated successfully, but these errors were encountered: