Trashbin Dupes for shared files

Hello everyone,

my company is using nextcloud as a main filesystem.
I noticed something that might be a problem for us.

There is a official dokumentation from nextcloud about deleted files.
LINK

And if i understand this correctly, the files are duped if a user is deleting the file but is not the creator/owner of this file.

I made a little testing with a colleague and it seems that this is right.
He deleted a file i shared to him, the same file is in our both trashbins.
Same size, same hash.

How are you handling the trashbin dupes? Is there a automated sollution?
Am I getting something wrong here?

Maybe someone can enlighten me.

I’m not sure if the file is exactly duplicated on storage level… it could be just a link in the DB.

But yes it’s exactly how it is described: current stable docs and seems unchanged from nc19 you referenced.

As long you don’t have massive amount of such data why do you care? Trashbin has automated size/history management… as soon it becomes to huge old files are removed. you could even force cleanup based on time trashbin-retention-obligation

see more topics tagged with trashbin

okay so my thought where right.

yea we have like 65k files in trashbins from all users…

i dont think that the files are links, i can move them seperatly out of the trashbins, and they are working / open fine after that.

ok if there is no other solution, we need to adjust the autodelete

thank you

The deleted files are stored in /path/to/nextcloud/data/username1/files_trashbin/files and /path/to/nextcloud/data/username2/files_trashbin/files.

I think you can optimize trashbin see documentation.

By saving the files twice, you have a maximum of twice the amount of data in the recycle bin. However, this only applies to shared files and only to shared files that have been deleted by someone other than the owner.

Further note:
The problem only occurs with private folders and private files that have been shared. It does not occur with Group folders. There, the deleted files are only deleted once, e.g. under
/path/to/nextcloud/data/__groupfolders/trash/1

1 Like