source: vendor/current/docs/manpages/vfs_recycle.8

Last change on this file was 989, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.7

File size: 5.2 KB
Line 
1'\" t
2.\" Title: vfs_recycle
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5.\" Date: 10/25/2016
6.\" Manual: System Administration tools
7.\" Source: Samba 4.4
8.\" Language: English
9.\"
10.TH "VFS_RECYCLE" "8" "10/25/2016" "Samba 4\&.4" "System Administration tools"
11.\" -----------------------------------------------------------------
12.\" * Define some portability stuff
13.\" -----------------------------------------------------------------
14.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15.\" http://bugs.debian.org/507673
16.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18.ie \n(.g .ds Aq \(aq
19.el .ds Aq '
20.\" -----------------------------------------------------------------
21.\" * set default formatting
22.\" -----------------------------------------------------------------
23.\" disable hyphenation
24.nh
25.\" disable justification (adjust text to left margin only)
26.ad l
27.\" -----------------------------------------------------------------
28.\" * MAIN CONTENT STARTS HERE *
29.\" -----------------------------------------------------------------
30.SH "NAME"
31vfs_recycle \- Samba VFS recycle bin
32.SH "SYNOPSIS"
33.HP \w'\ 'u
34vfs objects = recycle
35.SH "DESCRIPTION"
36.PP
37This VFS module is part of the
38\fBsamba\fR(7)
39suite\&.
40.PP
41The
42vfs_recycle
43intercepts 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\&.
44.PP
45The 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\&.
46.PP
47This module is stackable\&.
48.SH "OPTIONS"
49.PP
50recycle:repository = PATH
51.RS 4
52Path of the directory where deleted files should be moved\&.
53.sp
54If this option is not set, the default path \&.recycle is used\&.
55.RE
56.PP
57recycle:directory_mode = MODE
58.RS 4
59Set 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\&.
60.sp
61If this option is not set, the default mode 0700 is used\&.
62.RE
63.PP
64recycle:subdir_mode = MODE
65.RS 4
66Set MODE to the octal mode with which sub directories of the recycle repository should be created\&.
67.sp
68If this option is not set, subdirectories will be created with the mode from recycle:directory_mode\&.
69.RE
70.PP
71recycle:keeptree = BOOL
72.RS 4
73Specifies 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\&.
74.RE
75.PP
76recycle:versions = BOOL
77.RS 4
78If 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"\&.
79.RE
80.PP
81recycle:touch = BOOL
82.RS 4
83Specifies whether a file\*(Aqs access date should be updated when the file is moved to the repository\&.
84.RE
85.PP
86recycle:touch_mtime = BOOL
87.RS 4
88Specifies whether a file\*(Aqs last modified date should be updated when the file is moved to the repository\&.
89.RE
90.PP
91recycle:minsize = BYTES
92.RS 4
93Files that are smaller than the number of bytes specified by this parameter will not be put into the repository\&.
94.RE
95.PP
96recycle:maxsize = BYTES
97.RS 4
98Files that are larger than the number of bytes specified by this parameter will not be put into the repository\&.
99.RE
100.PP
101recycle:exclude = LIST
102.RS 4
103List of files that should not be put into the repository when deleted, but deleted in the normal way\&. Wildcards such as * and ? are supported\&.
104.RE
105.PP
106recycle:exclude_dir = LIST
107.RS 4
108List 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\&.
109.RE
110.PP
111recycle:noversions = LIST
112.RS 4
113Specifies a list of paths (wildcards such as * and ? are supported) for which no versioning should be used\&. Only useful when recycle:versions is enabled\&.
114.RE
115.SH "EXAMPLES"
116.PP
117Move files "deleted" on
118\fIshare\fR
119to
120\fI/data/share/\&.recycle\fR
121instead of deleting them:
122.sp
123.if n \{\
124.RS 4
125.\}
126.nf
127 \fI[share]\fR
128 \m[blue]\fBpath = /data/share\fR\m[]
129 \m[blue]\fBvfs objects = recycle\fR\m[]
130 \m[blue]\fBrecycle:repository = \&.recycle\fR\m[]
131 \m[blue]\fBrecycle:keeptree = yes\fR\m[]
132 \m[blue]\fBrecycle:versions = yes\fR\m[]
133.fi
134.if n \{\
135.RE
136.\}
137.SH "VERSION"
138.PP
139This man page is correct for version 3\&.0\&.25 of the Samba suite\&.
140.SH "AUTHOR"
141.PP
142The 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.