Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Recycle Bin (vfs recycle) for SMB Shares

Featured Replies

  • Replies 1.3k
  • Views 396.8k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Shares were not displaying when "Log Deleted Files" was set to "No".  This has been fixed in the latest version.

  • dlandon
    dlandon

    Done.   The file directory in the recycle bin is created when the file is deleted so it will show the date/time when the file(s) were deleted, but the modify date/time on the files will rema

  • The excluded files input field in the settings is now 150 characters.

Posted Images

  • Author
59 minutes ago, Surfparadise said:

...and now?

You can keep them from being added to the Recycle Bin by adding '*smbdelete*' to the excluded files of the Recycle Bin.

  • 1 month later...

I'm on 6.11.5. I was trying to empty out the Recycle Bin for some shares and found that somehow there were lots of nested .Recycle.Bin folders within the first level .Recycle.Bin folder.

 

For example, I get

\\TOWER\Movies\.Recycle.Bin\.Recycle.Bin\.Recycle.Bin\.Recycle.Bin\.Recycle.Bin\.Recycle.Bin\.Recycle.Bin\.Recycle.Bin\

 

I wasn't sure if clicking on each .Recycle.Bin folder created another nested one, so I stopped. If I try deleting the folder, Windows says items are being deleted (perhaps files within the folder), but I can't delete the nested folder - or any of the nested .Recycle.Bin sub-folders. I get a Windows error message saying "cannot find the path specified".

 

But that's when I look on my Win10 PC. When I go to the Web GUI and look at the Movies share, I have only one nested .Recycle.Bin folder. If I click on the blue .Recycle.Bin text, I just get the same page.

 

1380711475_Recyclebin.thumb.jpg.4ca36a00c2bfc73e3ea84294733a174b.jpg

 

I haven't tried deleting that nested folder yet, in case there's something I might inadvertently damage.

 

Don't know if it's happening on every share where Recycle Bin is applied, but I see the nested folders on all shares that I've looked at so far.

 

Any idea what happened and how I can fix this?

tower-diagnostics-20230924-1746.zip

  • Author
2 hours ago, sonofdbn said:

Don't know if it's happening on every share where Recycle Bin is applied, but I see the nested folders on all shares that I've looked at so far.

I've seen this before, but haven't seen it lately.  I could never figure out what made it happen.  I suspect there was a version of Samba that had a bug that created the nested .Recycle.Bin folder.

 

2 hours ago, sonofdbn said:

I haven't tried deleting that nested folder yet, in case there's something I might inadvertently damage.

You can delete the nested .Recycle.Bin folder.

On 9/24/2023 at 8:25 PM, dlandon said:

I've seen this before, but haven't seen it lately.  I could never figure out what made it happen.  I suspect there was a version of Samba that had a bug that created the nested .Recycle.Bin folder.

 

You can delete the nested .Recycle.Bin folder.

 

Thanks; deleting the nested folder has solved the problem. (Just to add a data point: some shares with the Recycle Bin have these nested folders, others don't.)

  • 3 months later...

How can exclude Share/Folder for example Backup_User/Job PC-User?

 

Is the exclude Directory with Backup_User/Job PC-User the correct Place?

 

That's not working. Whats wrong?

Edited by Revan335

  • Author
11 minutes ago, Revan335 said:

Is the exclude Directory with Backup_User/Job PC-User the correct Place?

Yes.

 

11 minutes ago, Revan335 said:

That's not working. Whats wrong?

The files are still getting deleted and recycled?

 

Post diagnostics.

5 minutes ago, dlandon said:

The files are still getting deleted and recycled?

Yes.

 

You have a PN with the Diagnostic.

 

Many Thanks!

  • Author

I am able to replicate the issue and I'm trying to come up with a solution.  Seems there has been a change in Samba that the Recycle Bin plugin doesn't handle.

  • Author
On 12/30/2023 at 7:47 AM, Revan335 said:

Yes.

 

You have a PN with the Diagnostic.

 

Many Thanks!

The issue ended up being the directory with spaces in the name.  Fix in today's release.

Can you fix the Sorting?

Screenshot_20240101_205656.png.1b642f49f92a768ff106022369d86cff.png

 

Is NFS working or add NFS Support?

  • Author
2 hours ago, Revan335 said:

Can you fix the Sorting?

Sorting works for me.  DId you click on the 'Trash Size' on the header?

 

2 hours ago, Revan335 said:

Is NFS working or add NFS Support?

Can't.  The recycle bin is a Samba feature only.  It does not work for NFS.

1 hour ago, dlandon said:

Can't.  The recycle bin is a Samba feature only.  It does not work for NFS.

Very Sad! I hope, NFS implemented this in the future.

 

1 hour ago, dlandon said:

Sorting works for me.  DId you click on the 'Trash Size' on the header?

Yes, 1,45 GB must the first or the last Entry. He is bigger than 704 MB.

Screenshot_20240102-002746_Firefox.thumb.png.d3c01ed90004e20a4f5cd78095d220f1.pngScreenshot_20240102-002730_Firefox.thumb.png.97634906dc543b6cecceee6cad930958.png

Is it expected when using this plugin that a recursive link will be created inside each share's .Recycle.Bin? For instance:

 

root@vault:/mnt/user/tv/.Recycle.Bin# ls -al
total 0
drwxrwxrwx 1 me users  98 Jan  7 23:46 ./
drwxrwxrwx 1 nobody  users 130 Sep  7 23:10 ../
lrwxrwxrwx 1 root    root   25 Apr 13  2023 .Recycle.Bin -> /mnt/user/tv/.Recycle.Bin/

 

This means it can be traversed infinitely, ie:

 

root@vault:/mnt/user/tv/.Recycle.Bin# cd .Recycle.Bin/.Recycle.Bin/.Recycle.Bin/.Recycle.Bin/.Recycle.Bin
root@vault:/mnt/user/tv/.Recycle.Bin/.Recycle.Bin/.Recycle.Bin/.Recycle.Bin/.Recycle.Bin/.Recycle.Bin#

 

This causes a problem when crawling directory contents via some scripts and utilities I use.

4 hours ago, fracturetrey said:

Is it expected when using this plugin that a recursive link will be created inside each share's .Recycle.Bin?

No. Not on my systems.

But I read this by another user in the past.

  • Author
4 hours ago, fracturetrey said:

This causes a problem when crawling directory contents via some scripts and utilities I use.

I've seen this in the past myself.  I believe it was an older version of Samba that had a bug.  You can delete those recurring folders.  Update Unraid if you are on an older version.

  • 3 weeks later...

Minor cosmetic issue.

If you go to the Recycle Bin settings page and sort the shares by Trash Size, the list is sorted by the number of (GB, MB), ignoring the fact that GBs are  larger than MBs.490921609_Screenshot2024-01-23at10_35_39AM.thumb.png.6b9c2e9aa83d849fb0272315d683f54f.png

  • Author
24 minutes ago, aim60 said:

Minor cosmetic issue.

If you go to the Recycle Bin settings page and sort the shares by Trash Size, the list is sorted by the number of (GB, MB), ignoring the fact that GBs are  larger than MBs.490921609_Screenshot2024-01-23at10_35_39AM.thumb.png.6b9c2e9aa83d849fb0272315d683f54f.png

It's an alphanumeric sort, not a numeric sort.  The display would have to be all numeric to sort in true size.  That would not be very human readable.  Not much I can do unless I can find a work around.

  • 3 weeks later...

I'm having trouble excluding directories from an unassigned device share.

Is this the correct input field format for excluding two folders?

 

'Aux SSD/Priority Share/Folder1', 'Aux SSD/Priority Share/Folder2'

 

I don't have two Exclusions but the one i have is:

Aux SSD/Priority Share/Folder1

In your example. Without ' or ,

  • Author
1 hour ago, Marc_G2 said:
'Aux SSD/Priority Share/Folder1', 'Aux SSD/Priority Share/Folder2'

You have several issues with this line:

  • Don't use "'".
  • Don't use ', '.  Only commas to separate the excludes.  No spaces.
  • You can only specify one folder level.  You cannot specify two folder levels deep.  It is share/folder, not share/folder/folder.

Hi dlandon,

 

I am running Unraid 6.11.1, and the Recyclin Bin plugin stopped working months ago, but I was not able to figure out why. I suspect I may have screwed something up when setting up rootshare

rootshare-sc.png

 

I've taken the following steps:
- Empty all trash
- Reinstalled the plugin
- Restarted the server

- Test delete files and no luck.

 

The deleted files are not being logged, and the /Media/.Recycle.Bin folder remains empty. 

Recyclin-bin-sc.png

 

I expect deleted files to be logged and moved to the .Recycle.Bin folder upon deletion.

The deleted files log and SMB Share are both empty. I've also attached the system diagnostic.zip file for further analysis.

un-RAID-Recycle-Bin.jpg

Thank you in advance for your assistance. Any help you can provide would be greatly appreciated.

 

unraid-diagnostics-20240210-2255.zip

Edited by belupig
Add possible reason on messing plugin up when setting up rootshare

  • Author
6 hours ago, belupig said:

The deleted files log and SMB Share are both empty. I've also attached the system diagnostic.zip file for further analysis.

I don't see anything in the diagnostics.  You do realize that the recycle bin only works on SMB shares?

 

The diagnostics in 6.11 don't have some features that would help me research your issue.  You should update your plugins and Unraid for further assistance.

7 hours ago, dlandon said:

I don't see anything in the diagnostics.  You do realize that the recycle bin only works on SMB shares?

 

The diagnostics in 6.11 don't have some features that would help me research your issue.  You should update your plugins and Unraid for further assistance.

I  updated to 6.12.6 and update any outdated plugins. Please see the new diagnostics attached.

My media user shares have SMB export enabled, but under the Recyclin bin settings, I don't the SMB share is empty. I assume this is what's causing issues? Thank you.

SMB-security-sc.png

Usershares-SMBsc.png

un-RAID-Recycle-Bin2.jpg

unraid-diagnostics-20240211-1343.zip

  • Author

Did the testdel file you deleted have a zero length?  A file that is deleted that is empty will not go to the .Recycle.Bin.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.