How can I have a Trash/Recycle Bin for my Samba shares?

30,030

I think you're looking for the vfs_recycle module to Samba.

In your smb.conf file for a given share:

[share]
Path = /data/share
vfs objects = recycle
recycle:repository = .recycle
recycle:keeptree = yes
recycle:versions = yes
Share:
30,030

Related videos on Youtube

rfgamaral
Author by

rfgamaral

Updated on September 18, 2022

Comments

  • rfgamaral
    rfgamaral over 1 year

    I have a couple of Samba shares on my NAS running Debian Squeeze which I access through Windows 7. Deleting any of the files from Windows will completely delete the files from the NAS server.

    Is there anyway to have a similar feature installed like the Trash/Recycle Bin? It would be nice if there even was a similar concept as Delete, file goes to trash and is deleted, ShiftDelete, file is deleted and no keep copy is kept anywhere.

    Is there such thing I could install?

  • m7913d
    m7913d over 2 years
    Does this configuration supports the Shift+Delete feature to permanently delete the file as mentioned by the OP?
  • slm
    slm over 2 years
    @m7913d not sure, hadn't tried it. I suspect it will.