[Samba] vfs objects recycle can not exclude profile directory
adam_xu at adagene.com.cn
adam_xu at adagene.com.cn
Thu May 31 08:58:43 UTC 2018
Rowland, I knew. but I want to make a recycle for all the sections except for profiles and recycle itself. so if I set up like what you suggested, there's a lot of duplicate config in a lot of sections.
yours Adam
From: Rowland Penny via samba
Date: 2018-05-31 15:59
To: samba
Subject: Re: [Samba] vfs objects recycle can not exclude profile directory
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
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
More information about the samba
mailing list