10

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?

jasonwryan
  • 71,734
  • 34
  • 193
  • 226
rfgamaral
  • 455
  • 2
  • 7
  • 19
  • Try this nice little tutorial on how to activate the bin for samba shares. http://timtrott.co.uk/enabling-recycle-bin-functionality-samba/ – Juergen Schulze Mar 24 '17 at 14:39

1 Answers1

15

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
slm
  • 363,520
  • 117
  • 767
  • 871