source: branches/samba-3.5.x/docs/manpages/vfs_recycle.8

Last change on this file was 773, checked in by Herwig Bauernfeind, 12 years ago

Samba Server 3.5: Update branch to 3.5.20

File size: 4.9 KB
Line 
1'\" t
2.\" Title: vfs_recycle
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5.\" Date: 12/14/2012
6.\" Manual: System Administration tools
7.\" Source: Samba 3.5
8.\" Language: English
9.\"
10.TH "VFS_RECYCLE" "8" "12/14/2012" "Samba 3\&.5" "System Administration tools"
11.\" -----------------------------------------------------------------
12.\" * set default formatting
13.\" -----------------------------------------------------------------
14.\" disable hyphenation
15.nh
16.\" disable justification (adjust text to left margin only)
17.ad l
18.\" -----------------------------------------------------------------
19.\" * MAIN CONTENT STARTS HERE *
20.\" -----------------------------------------------------------------
21.SH "NAME"
22vfs_recycle \- Samba VFS recycle bin
23.SH "SYNOPSIS"
24.HP \w'\ 'u
25vfs objects = recycle
26.SH "DESCRIPTION"
27.PP
28This VFS module is part of the
29\fBsamba\fR(7)
30suite\&.
31.PP
32The
33vfs_recycle
34intercepts file deletion requests and moves the affected files to a temporary repository rather than deleting them immediately\&. This gives the same effect as the Recycle Bin on Windows computers\&.
35.PP
36The Recycle Bin will not appear in Windows Explorer views of the network file system (share) nor on any mapped drive\&. Instead, a directory called \&.recycle will be automatically created when the first file is deleted and recycle:repository is not configured\&. If recycle:repository is configured, the name of the created directory depends on recycle:repository\&. Users can recover files from the recycle bin\&. If the recycle:keeptree option has been specified, deleted files will be found in a path identical with that from which the file was deleted\&.
37.PP
38This module is stackable\&.
39.SH "OPTIONS"
40.PP
41recycle:repository = PATH
42.RS 4
43Path of the directory where deleted files should be moved\&.
44.sp
45If this option is not set, the default path \&.recycle is used\&.
46.RE
47.PP
48recycle:directory_mode = MODE
49.RS 4
50Set MODE to the octal mode the recycle repository should be created with\&. The recycle repository will be created when first file is deleted\&. If recycle:subdir_mode is not set, MODE also applies to subdirectories\&.
51.sp
52If this option is not set, the default mode 0700 is used\&.
53.RE
54.PP
55recycle:subdir_mode = MODE
56.RS 4
57Set MODE to the octal mode with which sub directories of the recycle repository should be created\&.
58.sp
59If this option is not set, subdirectories will be created with the mode from recycle:directory_mode\&.
60.RE
61.PP
62recycle:keeptree = BOOL
63.RS 4
64Specifies whether the directory structure should be preserved or whether the files in a directory that is being deleted should be kept separately in the repository\&.
65.RE
66.PP
67recycle:versions = BOOL
68.RS 4
69If this option is True, two files with the same name that are deleted will both be kept in the repository\&. Newer deleted versions of a file will be called "Copy #x of filename"\&.
70.RE
71.PP
72recycle:touch = BOOL
73.RS 4
74Specifies whether a file\'s access date should be updated when the file is moved to the repository\&.
75.RE
76.PP
77recycle:touch_mtime = BOOL
78.RS 4
79Specifies whether a file\'s last modified date should be updated when the file is moved to the repository\&.
80.RE
81.PP
82recycle:minsize = BYTES
83.RS 4
84Files that are smaller than the number of bytes specified by this parameter will not be put into the repository\&.
85.RE
86.PP
87recycle:maxsize = BYTES
88.RS 4
89Files that are larger than the number of bytes specified by this parameter will not be put into the repository\&.
90.RE
91.PP
92recycle:exclude = LIST
93.RS 4
94List of files that should not be put into the repository when deleted, but deleted in the normal way\&. Wildcards such as * and ? are supported\&.
95.RE
96.PP
97recycle:exclude_dir = LIST
98.RS 4
99List of directories whose files should not be put into the repository when deleted, but deleted in the normal way\&. Wildcards such as * and ? are supported\&.
100.RE
101.PP
102recycle:noversions = LIST
103.RS 4
104Specifies a list of paths (wildcards such as * and ? are supported) for which no versioning should be used\&. Only useful when recycle:versions is enabled\&.
105.RE
106.SH "EXAMPLES"
107.PP
108Move files "deleted" on
109\fIshare\fR
110to
111\fI/data/share/\&.recycle\fR
112instead of deleting them:
113.sp
114.if n \{\
115.RS 4
116.\}
117.nf
118 \fI[share]\fR
119 \m[blue]\fBpath = /data/share\fR\m[]
120 \m[blue]\fBvfs objects = recycle\fR\m[]
121 \m[blue]\fBrecycle:repository = \&.recycle\fR\m[]
122 \m[blue]\fBrecycle:keeptree = yes\fR\m[]
123 \m[blue]\fBrecycle:versions = yes\fR\m[]
124.fi
125.if n \{\
126.RE
127.\}
128.SH "VERSION"
129.PP
130This man page is correct for version 3\&.0\&.25 of the Samba suite\&.
131.SH "AUTHOR"
132.PP
133The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
Note: See TracBrowser for help on using the repository browser.