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

  • Author
Just now, dee31797 said:

running 6.4.0-rc9f

I'm running that version also and don't have any problems.

 

Do you mind posting diagnostics?  I wonder if there is a plugin or something interfering with the recycle bin plugin operation.

  • Replies 1.3k
  • Views 396.6k
  • 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

I just installed the plugin tonight on 6.3.5 and had the same issue. Deleted files would not be logged or put in the recycled folder. I tried stopping/restarting the array but that did not have an effect as well as stop/starting the recycle bin on the settings page. Running the `

/usr/local/emhttp/plugins/recycle.bin/scripts/configure_recycle_bin

and running samba restart twice

/usr/local/sbin/samba restart

 

Got it working for me too. I do not know how to find the /etc/samba/smb-shares.conf file so I do not know if the recycle bin entries were in it or not. I'm happy it's working now but wanted to let you know that it didn't work without manually running these commands.  My setup is fairly simple with only a few plugins:

  • CA Auto Update Applications
  • CA Backup / Restore Appdata
  • CA Cleanup Appdata
  • Command Line Tool
  • Community Applications
  • Dynamix System Buttons
  • Dynamix System Information
  • Dynamix System Statistics
  • Dynamix webGui
  • Recycle Bin
  • Useful Links
  • Author

Your experience with the recycle bin plugin is not normal.  I cannot reproduce your issue and will not be able to do anything about it until/when I can reproduce it.

 

The recycle bin plugin depends on unRAID to initiate an event to allow the recycle bin parameters to be added to shares.  I have no control over the triggering of this event.

 

I suspect there is a plugin or something interfering.

@dlandon quick question, will the schedule cleaner delete everything in the .Recycle.Bin folder, even if it wasn't placed there by the plugin/removing from Samba?

  • Author
4 minutes ago, dee31797 said:

@dlandon quick question, will the schedule cleaner delete everything in the .Recycle.Bin folder, even if it wasn't placed there by the plugin/removing from Samba?

Yes.

  • 1 month later...

@dlandon

I just want to tank you for this incredibly helpful plugin! =)

  • 1 month later...
On 6/28/2017 at 2:17 PM, JoshFink said:

It's not the shares that I'm excluding but files. Wildcards won't work with them because I want some but not all (they're certain jpgs and pngs that I want to exclude). 

 

Not a huge rush on it but I appreciate the help. 

 

Were you able to accomplish excluding specific files or folders?  I am looking to exclude a few sub folders in a share and can not get it to work.  Any help would be appreciated.  Thanks!

On 12/10/2017 at 11:01 PM, shazahm1 said:

I just installed the plugin tonight on 6.3.5 and had the same issue. Deleted files would not be logged or put in the recycled folder. I tried stopping/restarting the array but that did not have an effect as well as stop/starting the recycle bin on the settings page. Running the `


/usr/local/emhttp/plugins/recycle.bin/scripts/configure_recycle_bin

and running samba restart twice


/usr/local/sbin/samba restart

 

Got it working for me too. I do not know how to find the /etc/samba/smb-shares.conf file so I do not know if the recycle bin entries were in it or not. I'm happy it's working now but wanted to let you know that it didn't work without manually running these commands.  My setup is fairly simple with only a few plugins:

  • CA Auto Update Applications
  • CA Backup / Restore Appdata
  • CA Cleanup Appdata
  • Command Line Tool
  • Community Applications
  • Dynamix System Buttons
  • Dynamix System Information
  • Dynamix System Statistics
  • Dynamix webGui
  • Recycle Bin
  • Useful Links

Just to say I exactly did what shazahm1 did to get mine working... including the running samba restart twice..

 

I checked the /etc/samba/smb-shares.conf file  beforehand and the recycle bin entries were in it already

Edited by Zangief

  • 3 weeks later...

Is there any problem with Recycle Bin on 6.4.0 -?

 

I deleted directory, but nothing showed up in RecycleBin page

9 minutes ago, michael123 said:

Is there any problem with Recycle Bin on 6.4.0 -?

 

I deleted directory, but nothing showed up in RecycleBin page

How did you delete the directory? Recycle Bin only works when SMB is involved. In other words, you have to delete from over the network.

6 minutes ago, trurl said:

How did you delete the directory? Recycle Bin only works when SMB is involved. In other words, you have to delete from over the network.

 

Yes, sure.

Deleted it from the explorer on Windows 10

 

I noticed also that I don't have these mentioned empty recycle bin icons on the 'shares' page

Edited by michael123

I see logs are clean.

 

smb-extra has (seems to) proper config


 

[global]
preferred master = yes
os level = 255
ntlm auth = yes
#vfs_recycle_start
#Recycle bin configuration
[global]
   syslog only = Yes
   log level = 0 vfs:0
#vfs_recycle_end 

 

Should I stop/start the array to make it work?

Should this thing work on 6.4 ?

On 1/26/2018 at 2:28 PM, michael123 said:

Should I stop/start the array to make it work?

Should this thing work on 6.4 ?

 

I recently upgraded to 6.4 and this plugin is working for me.  I did not have to re-install, it continued to work the same as it had on 6.3.

 

Also in reference to your comment - "I noticed also that I don't have these mentioned empty recycle bin icons on the 'shares' page" - I do not have any recycling bin on the Unraid Shares page, I never have. 

 

I believe you are referring to the ".Recycle.Bin" folder that gets created when you delete something through SMB.  This folder is located in the ROOT of your share and is visible through Windows Explorer.

 

For example, if your Unraid SHARE is called Media and all your movies, TV Shows, etc. are in folders underneath it, the .Recycle.Bin folder will show up in the Media folder once you delete something in one of those sub folders.

 

See the attached screen shot.  I deleted a file from \\unraidname\media\Kids Movies from windows explorer.  Now I have a .Recycle.Bin folder located at \\unraidname\media and the delete file is located in it.

Capture1.JPG

Thanks @HocEman

 

I don't have anything resembling RecycleBin in the root of each share

 

I think I did not restart the server.. should I?

15 minutes ago, michael123 said:

Thanks @HocEman

 

I don't have anything resembling RecycleBin in the root of each share

 

I think I did not restart the server.. should I?

 

Sure, a reboot is never a bad idea when things are not working properly, more so when it comes to Windows systems, but in this case it is worth a shot.

43 minutes ago, michael123 said:

Thanks @HocEman

 

I don't have anything resembling RecycleBin in the root of each share

 

I think I did not restart the server.. should I?

Actually, it’s .Recycle.Bin. Depending on how you are browsing the shares you may need to ensure that Hide Dot Files is set to “No” in Settings>SMB. If you are using the file browser built in to the webUI I don’t think it matters.

It works.. 

Restart was needed :)

 

Question - should it work on the files, which are on cache drive, not yet moved into raid?

 

3 minutes ago, michael123 said:

It works.. 

Restart was needed :)

 

Question - should it work on the files, which are on cache drive, not yet moved into raid?

 

Yes. As long as you are connecting to the share via SMB.

Hello,

 

updates at end

 

When I upgraded to unRaid 6.4.0 from 6.2 my manual entries in /boot/config/smb-extra.conf stopped working and just realized today.

 

I've installed the plugin, enabled it and even tried the configure script and restarting samba a few times ...

I'm still not getting any .Recycle.Bin files showing up

 

/usr/local/emhttp/plugins/recycle.bin/scripts/configure_recycle_bin

/usr/local/sbin/samba restart

 

Is there any further things I can check to get the Recycle Bin working again?

 

Thanks for your time,

Bobby

 

ps - now it's deleting to 

/mnt/user/recordings/.Recycle.Bin/mnt/user/recordings/.Recycle.Bin/computer_name/*

or

R:\.Recycle.Bin\mnt\user\recordings\.Recycle.Bin\computer_name\*

 

now I need to shorten that to 

\\storage\recordings\.Recycle.Bin\computer_name\*

 

in the Recycle Bin Parameters Box I have "%P/.Recycle.Bin/%m"

 

 

 

 

 

Edited by perfessor101
recycle bin working now possibly ... but path too confused

I am unable to open Recycle Bin's settings. The page is just blank, despite restarting and reinstalling the plugin. It's meant to be disabled atm as I'm shifting lots of files around, however I noticed the folders and found files within them that would seem to indicated that it's running.
2018-02-04_19-02-35_AtlantisRecycleBin_-_Google_Chrome.thumb.png.f32292e5b61771584033928205743c53.png
What are the suggestions for fixing this? (For now I'm uninstalling as I continue to shift files)

  • Author

If your server is very busy and there are lots of files in the recycle bin it can take a long time for the page to display.

Hello dlandon,

 

it seems that on unraid 6.4.1 that my recycle bin is dropping a few file types without 'recycling' them 

*.txt, *.bmp, etc.

I'm not sure how many others, will try to figure out if it's dropping any files that I really need it to save 

 

and will start googling if it should keep those ones

 

Thanks for your time,

Bobby

  • Author
On 2/9/2018 at 1:33 PM, perfessor101 said:

Hello dlandon,

 

it seems that on unraid 6.4.1 that my recycle bin is dropping a few file types without 'recycling' them 

*.txt, *.bmp, etc.

I'm not sure how many others, will try to figure out if it's dropping any files that I really need it to save 

 

and will start googling if it should keep those ones

 

Thanks for your time,

Bobby

The recycle bin won't show deleted files unless they are deleted with SMB.

1 hour ago, dlandon said:

The recycle bin won't show deleted files unless they are deleted with SMB.

In other words, unless you are doing the deletes over the network, they don't go into the Recycle Bin. If you are doing it on the server, either manually or with some app, then Recycle Bin has no way to know about it.

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.