How do you set up a recycle bin in Samba 3.0?

How do you set up a recycle bin in Samba 3.0?

I have a question about the Samba 3.0 VFS recycle bin module which uses parametric options. The VFS option (smb.conf) no longer exists (removed). What is the correct procedure for setting up a recycle bin in version 3.0 (granted, you need the vfs switch compiled in etc.)?

There's nothing anywhere on this, so I'm wondering if it works properly yet.

    Requires Free Membership to View

    When you register, my team of editors will also send you resources covering Linux administration and management; integration and interoperability between Linux, Windows and Unix; securing Linux and mixed-platform environments; and migrating to Linux.

    Cathleen A. Gagne, Senior Editorial Director

    By submitting your registration information to SearchEnterpriseLinux.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchEnterpriseLinux.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

Samba-3 has not yet been released, so by definition that means we are still working on it as well as the documentation. This will be documented properly before release -- in the man pages, the HOWTO and in the book version of the HOWTO that should be available in the last quarter of the year.

FYI, the paramters to the smb.conf option: "vfs module =" for the recycle bin are:

recycle:repository="directory", default ".recycle" in the share root

recycle:keeptree=[False | True], default is False

recycle:versions=[False | True], default is False

recycle:touch=[False | True], default is False

recycle:exclude="pattern"

recycle:exclude_dir="pattern"

recycle:noversions="pattern"

recycle:maxsize='size'

For recycle to use a directory off the share root called "Crud," keeping the directory tree intact:

 vfs object = recycle:repository="Crud" recycle:keeptree=True
Hope this helps.

Cheers,
John T.

This was first published in July 2003