[Samba] Recycle Bin On Share

Rowland Penny rowlandpenny at googlemail.com
Tue Mar 17 09:44:00 MDT 2015


On 17/03/15 15:31, James wrote:
> Rowland,
>
>      How exactly does this command work?
>
> recycle:repository = .recycle/%U
>
> Does the command create user folders with '.recycle' sub folders?
>
> On 3/17/2015 10:23 AM, Rowland Penny wrote:
>> On 17/03/15 14:05, James wrote:
>>> Hello,
>>>
>>>       Is this the preferred method for adding a recycle bin to a share?
>>> Share is located on a Samba 4.1.17 member server.  Thanks.
>>>
>>> /|[share]|/
>>>      path = /data/share
>>> <https://www.samba.org/samba/docs/man/manpages/smb.conf.5.html#PATH>
>>>      vfs objects = recycle
>>> <https://www.samba.org/samba/docs/man/manpages/smb.conf.5.html#VFSOBJECTS>
>>>      recycle:repository = .recycle
>>> <https://www.samba.org/samba/docs/man/manpages/smb.conf.5.html#RECYCLE:REPOSITORY>
>>>      recycle:keeptree = yes
>>> <https://www.samba.org/samba/docs/man/manpages/smb.conf.5.html#RECYCLE:KEEPTREE>
>>>      recycle:versions = yes
>>> <https://www.samba.org/samba/docs/man/manpages/smb.conf.5.html#RECYCLE:VERSIONS>
>>>
>>>
>> Hi, this what I have working with 4.1.17
>>
>> vfs objects = recycle
>> recycle:versions = Yes
>> recycle:noversions = *.doc|*.xls|*.ppt|*.dat|*.ini|*.pdf
>> recycle:exclude_dir = /tmp|/temp|/cache
>> recycle:exclude = *.tmp|*.TMP|*.temp|*.o|*.obj|~$*|*.~??|index*.*
>> recycle:maxsize = 0
>> recycle:touch_mtime = Yes
>> recycle:touch = Yes
>> recycle:keeptree = Yes
>> recycle:repository = .recycle/%U
>>
>> Rowland

 From your path '/data/share', when one of your users deletes a file in 
the share '[share]', a recycle bin is created 
'/data/share/.recycle/<username>
Nothing is created until a user deletes something.

Rowland



More information about the samba mailing list