1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
3 <refentry id="vfs_recycle.8">
6 <refentrytitle>vfs_recycle</refentrytitle>
7 <manvolnum>8</manvolnum>
12 <refname>vfs_recycle</refname>
13 <refpurpose>Samba VFS recycle bin</refpurpose>
18 <command>vfs objects = recycle</command>
23 <title>DESCRIPTION</title>
25 <para>This VFS module is part of the
26 <citerefentry><refentrytitle>samba</refentrytitle>
27 <manvolnum>7</manvolnum></citerefentry> suite.</para>
29 <para>The <command>vfs_recycle</command> intercepts file deletion
30 requests and moves the affected files to a temporary repository
31 rather than deleting them immediately. This gives the same effect
32 as the Recycle Bin on Windows computers. </para>
34 <para>The Recycle Bin will not appear in Windows Explorer
35 views of the network file system (share) nor on any mapped
36 drive. Instead, a directory called .recycle will be automatically
37 created when the first file is deleted and recycle:repository is
38 not configured. If recycle:repository is configured, the name
39 of the created directory depends on recycle:repository. Users
40 can recover files from the recycle bin. If the recycle:keeptree
41 option has been specified, deleted files will be found in a path
42 identical with that from which the file was deleted. </para>
45 <para>This module is stackable.</para>
51 <title>OPTIONS</title>
56 <term>recycle:repository = PATH</term>
58 <para>Path of the directory where deleted files should be moved.
60 <para>If this option is not set, the default path .recycle
66 <term>recycle:directory_mode = MODE</term>
68 <para>Set MODE to the octal mode the recycle repository
69 should be created with. The recycle repository will be
70 created when first file is deleted. If recycle:subdir_mode
71 is not set, MODE also applies to subdirectories.
73 <para>If this option is not set, the default mode
79 <term>recycle:subdir_mode = MODE</term>
81 <para>Set MODE to the octal mode with which
82 sub directories of the recycle repository should be created.
84 <para>If this option is not set, subdirectories
85 will be created with the mode from recycle:directory_mode.
91 <term>recycle:keeptree = BOOL</term>
93 <para>Specifies whether the directory structure should
94 be preserved or whether the files in a directory that is being
95 deleted should be kept separately in the repository.
101 <term>recycle:versions = BOOL</term>
103 <para>If this option is True, two files with the same
104 name that are deleted will both be kept in the repository.
105 Newer deleted versions of a file will be called
106 "Copy #x of filename".
112 <term>recycle:touch = BOOL</term>
114 <para>Specifies whether a file's access date should be
115 updated when the file is moved to the repository.
121 <term>recycle:touch_mtime = BOOL</term>
123 <para>Specifies whether a file's last modified date should be
124 updated when the file is moved to the repository.
130 <term>recycle:minsize = BYTES</term>
132 <para>Files that are smaller than the number of bytes
133 specified by this parameter will not be put into the
140 <term>recycle:maxsize = BYTES</term>
142 <para>Files that are larger than the number of bytes
143 specified by this parameter will not be put into the
150 <term>recycle:exclude = LIST</term>
152 <para>List of files that should not be put into the
153 repository when deleted, but deleted in the normal way.
154 Wildcards such as * and ? are supported.
160 <term>recycle:exclude_dir = LIST</term>
162 <para>List of directories whose files should not be put
163 into the repository when deleted, but deleted in the
164 normal way. Wildcards such as * and ? are supported.
170 <term>recycle:noversions = LIST</term>
172 <para>Specifies a list of paths (wildcards such as *
173 and ? are supported) for which no versioning should
174 be used. Only useful when recycle:versions is enabled.
183 <title>EXAMPLES</title>
185 <para>Log operations on all shares using the LOCAL1 facility
186 and NOTICE priority:</para>
189 <smbconfsection name="[global]"/>
190 <smbconfoption name="vfs objects">recycle</smbconfoption>
191 <smbconfoption name="recycle:facility">LOCAL1</smbconfoption>
192 <smbconfoption name="recycle:priority">NOTICE</smbconfoption>
198 <title>VERSION</title>
200 <para>This man page is correct for version 3.0.25 of the Samba suite.
205 <title>AUTHOR</title>
207 <para>The original Samba software and related utilities
208 were created by Andrew Tridgell. Samba is now developed
209 by the Samba Team as an Open Source project similar
210 to the way the Linux kernel is developed.</para>