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
Trashbin on external storage #4389
Comments
@schiesbn |
Bumping - I will have a go at implementing this at some point. |
@Xenopathic can you describe your ideas here as discussed today, you referred to the way how .gvfs was doing it 😄 |
@PVince81 you're having fun mentioning me in every issue, aren't you 😆 The way GVFS (Gnome Virtual FileSystem) works is, in my opinion, very sane. It provides a trashbin, similar to oC's, but since it is running on a real filesystem it puts 'deleted' files into A similar thing could be done with files_trashbin. I suggest having a directory in the root of the external storage, The only issue that needs resolving is encryption. As far as I know, when a file is put in the trash bin its encryption keys are also put there. Again, to maintain consistency this means those keys will end up on the remote storage - where they could be accessed directly by users. As long as all encryption keys are encrypted with a key only available on the ownCloud server, this point is no longer valid, but it needs to be checked for security. |
We could also have a single shared trashbin on the external storage, this way multiple users have the possibility to restore old files and see the same deleted files (suggested somehow here #7676) |
I think this would be the right issue to express my confusion about the space management. Here is an example about my confusion: |
You're right, it's not very clear. The quota value is the one of the home storage and doesn't account for any external storages. Making the quota count external storages is tricky because it would be different depending on the folders. This is why it was suggested to have trashbin and version stored on the respective external storages. The expiration logic could then be run for every storage separately based on the space available on each storage. Hope that makes sense. |
So in your case if your "data" folder doesn't have a lot of space, then versions and trash might expire very often. |
So reaching 0bytes will still give me a working cloud, but without version/trash? |
Yes, without versions and trash. |
I find this very interesting to have since currently in 8.2beta1 it isn't possible to delete a group of files in external storage => annoying. |
@SergioBertolinSG can you elaborate ? Maybe you mean #16533 ? |
Yes, exactly that thanks. |
If you want to test deletion, you can create a subdir. That problem only exists for files directly under the mount point. |
I use AWS S3 as primary storage and implemented .files_trashbin and .files_versions folder inside root space of bucket similar to .Trash-oc- you discussed previously but problem is that in case of AWS-S3 they don't have object rename method or API officially because its object storage or business policy of AWS so in order to rename or Delete object(move to trashbin) i need to pass following steps
Step 1 in case of big size like 1 GB++ and if files have some versions also then move everything to .files_trashbin and .files_trashbin/version folder it takes long time to copy. and i can't imagine scenario incase of large object 8 GB ++. better to provide software level object rename or maping (DB:files_cache) table need to include object mapping column. so we don't need to move or rename object on storage just update object name in SQL DB. I know this steps can increase complexity in user's quota space count method. Reference of rename method in AWS S3 : https://github.com/owncloud/core/blob/master/apps/files_external/lib/amazons3.php#L514 |
Any news on this topic ? Otherwise, anyone knows if trash can be disabled altogether for external storage ? Thanks |
If you delete files directly on the external storage aside ownCloud, it won't fill up your ownCloud trashbin. For some users this might be desired behavior, for others not … |
It sure could be a desired behavior; |
Hello. Any news on this? I stumbled on this issue because of an error when I was trying to delete files from my G Drive. Possibly, this issue here is related. |
Hi,
we use external storage (via swift) to keep all files. The problem is that the trashbin works independently, and stores files locally. This cause several issues:
My question is: will the trashbin support external storage just like other parts of owncloud in the nearest future? Is there a simple way to add a support for external storage in current oc version?
Best Regards,
Tom
The text was updated successfully, but these errors were encountered: