[Not Accepted] Recycle bin smb share checkbox - truenas 25.10

Problem/Justification
in Truenas 25.10, when creating or editing an SMB share, there is no way to enable the recycle bin in the other options (there is no checkbox), there isn’t the purpose “no preset”.

Impact
This function exists and is used in the current stable version; it could also be useful in versions 25.10 and later.

User Story
was present until release 25.04

3 Likes

Can you explain why you prefer this rather than using ZFS snapshots and accessing them via shadow copy?

We have found this approach to be more reliable, but maybe some use cases cannot use it?

For simple use cases (but not only those), the Recycle Bin would be the simplest and quickest solution, rather than having to search for a file in the snapshots — especially considering that the file may have been created and deleted within the scheduled interval.

I believe that restoring the feature — which was never actually removed, except for the associated checkbox — even with some limitations, would be a welcome solution for many users.

This can be done if working from powershell, you would create a smb share on the server that you would share as recycle bin.
Then over ride the del command which actually calls a script to move the files into the recycle bin share, you can even filter the files that you want to go into the recycle bin with this script… end result you have your recycle bin and the Truenas team doesn’t have to develop something outside the core functionality of Truenas.

But they don’t need to develop anything — the functionality has been available in Samba for quite some time. They should just restore the feature in the web UI, or at the very least, provide a way for more advanced users to edit the Samba configuration file to enable it. Because changes made from the shell aren’t persistent — and yes, I’ve already tried to edit the conf.

1 Like

I propose such a feature be named “Auxiliary Parameters”.

It’s never been done before, but I think you’re on to something. Advanced users will have more control of their NAS, while everyone else will remain safe against system tinkering, since such a feature could be hidden by default.

4 Likes

I am not that au fait with Sambas extended capabilities to be able to comment on that “functionality” only the Trunas team would know if it’s problematic to expose that to the end user or not… maybe there is some reason it’s not been exposed but I suppose It can’t hurt to ask, I was offering a work around that I had used as I had accidently removed an unspecified number of files after being distracted while deleting one specific file, when I say unspecified think lots and lots :slight_smile:

1 Like

Hi,

i would also like to regain that Feature, and no, Snapshots are not the same, its a different aproch.
For the normal home user, its far more easy, delete a file go to recycle, copy out.

if there is a create and delete beetween snaphots its gone.

It seams VSS is also not an Option on 25.10 → Enabling or disabling shadow copies is an available option in pre-25.10 TrueNAS releases or for legacy shares in 25.10 or later.
I did not find a Option to create Legacy share so far.

Ok VSS is enabled by default on new shares now → testet with clean Testisntall 25.10

wbr Alex

3 Likes

I would like to get the recycle bin back as i am using it at my design studio and sometimes my designer delete the file on the same day they created it by mistake

So in that case snapshot are not helpful

And in my case i take snapshot weekly because we delete and modify around 200 files per day and finding it in snapshot will be very tough and recycle bin is very convenient in that way

2 Likes

I need the recycle bin — why was it deleted?

The irony. :laughing:

I had ‘recycle’ option enabled on one of the datasets, I’ve upgraded to 25.10 and not only this option is gone from UI, it’s functionality is gone as well, deleted files are not moved to .recycle. Please fix.

1 Like

I just discovered that the recycle bin was removed. But when I delete a file, I can immediately find it in the recycle bin. With snapshots, it’s impossible to take them in real time, and I’d have to go into the system and perform extra steps to restore the file. Originally, I could recover it instantly. I don’t understand why it was removed.

3 Likes

me too

1 Like

Eg. it does not work on MacOs

Some background…..

Recycle bin is a kluge because the clients don’t really understand recycle on a shared NAS. When you empty the recycle bin… the NAS does not get told. The user has to go to a strange place and delete the files again. Our customers were having too many issues with this.

Snapshots do work….. there is minimum file lifetime to be reliable, but snapshots can be frequent.

MacOS doesn’t provide visibility to SMB snapshots like Windows SMB. That’s sad, but pushing Apple around to fix this is unlikely to be feasible unless someone is related to a senior exec there.

TrueNAS is providing a tool in 26.04 which would allow web access to all files including snapshot directories. That will work with Macs. So, there is a choice to stay on 25.04 and then later update to 26.04.

1 Like

I understand, but as some NAS systems (for example Synology or QNAP, among the most well-known ones — obviously you know this, but I like to repeat it since it supports my request) already provide, it would be enough to implement a scheduled job that automatically empties the recycle bin every few days — or implement the idea of a checkbox for advanced users to enable this or other more delicate options.

Thanks for the explanation !

I also do not like the concept of share based recycle bins, for many reasons.

When you empty the recycle bin… the NAS does not get told. The user has to go to a strange place and delete the files again. Our customers were having too many issues with this.

That’s probably the reason why eg. Synology implemented an schedlued cleanup of recycle bins..

But the pool option “Snapshot visibility” option does also work for mac smb users, isn’t it ?

Or is it not recommended for Security reasons ?

Not sure…. can someone verify?

I don’t like telling Enterprises that we automatically deleted their data….