[SAMBA] VFS

Stefan Drees s_drees at arcor.de
Sun Apr 22 18:39:33 GMT 2007


Hi,
i did it with the following settings:
vfs object = recycle
recycle: repository = .deleted/%U
recycle: keeptree = yes
recycle: exclude = *.tmp, *.temp, *.log
recycle: versions = yes

I don´t find an option recycle:mode, see also:
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/VFS.html#id380094

Hope that helps.

Regards
Stefan D.

Franck Y schrieb:
> Hello Folks,
>
> i tried to implement the VFS recycle bin  But i must be missing
> something...
> I've several folders DATA2, DATA1
> But it's exactly the same samba definition!
>
> I wanted to keep the structure when it's deleted.
>
> Thanks for your help !
>
>
>
> [global]
>        log file = /var/log/samba/%m.log
>        load printers = no
>        guest account = Tomas
>        smb ports = 139
>        idmap gid = 16777216-33554431
>        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>        prefered master = yes
>        domain master = yes
>        username map = /etc/samba/smbusers
>        dns proxy = no
>        cups options = raw
>        writeable = yes
>        server string = Samba Server
>        idmap uid = 16777216-33554431
>        only user = yes
>        local master = yes
>        workgroup = niumin
>        printcap name = /etc/printcap
>        max log size = 50
>
>
> [DATA2]
>        path = /home/DATA2/
>        write list = @joe
>        force directory mode = 770
>        msdfs proxy = no
>        force group = @joe
>        force create mode = 770
>        create mask = 770
>        directory mask = 770
>        user = @joe
>        case sensitive = no
>        vfs object = recycle
>        recycle:touch = True
>        recycle:repository = .deleted/
>        recycle:keeptree = True
>        recycle: mode = KEEP_DIRECTORIES|VERSIONS
>        recycle:versions = yes
>      recycle: touch = yes
>     recycle: maxsize = 0
>     recycle: exclude = *.tmp *.temp *.obj ~$* *.$$$



More information about the samba mailing list