LinuxSay - A Discussion Forum for Linux Enthusiasts

How to create recycle-bin for samba shared folder`s in centos 7

Hi Everyone,

i have configured shared folders on samba , now i would like to configure recycle bin for them. i have tried in many helping sites but i failed to configure . I request you any one to help on this topic.

Thanks much in advance…
Raghavendra Pothula

Hi

What error you facing, can you plz share your configuration want to see how you configured.

Hi Raghu,

First of all i would like to thank you. Issue is fixed,

Issue : vfs object = recycle
recycle:repository = /data/recycle/%U
recycle:touch = Yes
recycle:keeptree = Yes
recycle:versions = Yes
recycle:noversions = .tmp,.temp,.o,.obj,.TMP,.TEMP
recycle:exclude = .tmp,.temp,.o,.obj,.TMP,.TEMP
recycle:excludedir = /recycle,/tmp,/temp,/TMP,/TEMP
I have added this script in smb.conf under the sharefolder script. but deleted files was not moving to given path . i found one more finally would like to conclude issue is fixed.

Thanks
Raghavendra Pothula

there is only one way? or maybe other variants are possible?

Other variants are also possible . Above mentioned script not worked on my server.