[Samba] vfs objects recycle can not exclude profile directory
Rowland Penny
rpenny at samba.org
Thu May 31 07:59:08 UTC 2018
On Thu, 31 May 2018 13:17:06 +0800
adam_xu--- via samba <samba at lists.samba.org> wrote:
> Hello everyone. I have tested this in my testing env. there's no this
> bug in my test env with the same smb.conf.
>
> the system version and the samba version are the same in testing and
> production env.
>
> the difference is that the samba in production env is update from
> version 4.4.4 to 4.6.2 to 4.7.1, and the samba in testing env is
> directly using version 4.7.1.
>
> any suggestion ? thanks.
>
Have you tried it like this:
[global]
.........
vfs objects = acl_xattr full_audit recycle
.......
[users]
path = /srv/samba/users/
read only = no
recycle:repository = /srv/samba/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:exclude_dir = recycle,tmp,temp,TMP,TEMP,profiles,%U.V2
[profiles]
path = /srv/samba/profiles/
read only = no
[recycle]
path = /srv/samba/recycle/
read only = no
From my understanding, recycle would only work on the 'users' share, it
would be ignored on 'profiles' and 'recycle'
Rowland
More information about the samba
mailing list