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"
|
---|
22 | vfs_recycle \- Samba VFS recycle bin
|
---|
23 | .SH "SYNOPSIS"
|
---|
24 | .HP \w'\ 'u
|
---|
25 | vfs objects = recycle
|
---|
26 | .SH "DESCRIPTION"
|
---|
27 | .PP
|
---|
28 | This VFS module is part of the
|
---|
29 | \fBsamba\fR(7)
|
---|
30 | suite\&.
|
---|
31 | .PP
|
---|
32 | The
|
---|
33 | vfs_recycle
|
---|
34 | intercepts 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
|
---|
36 | The 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
|
---|
38 | This module is stackable\&.
|
---|
39 | .SH "OPTIONS"
|
---|
40 | .PP
|
---|
41 | recycle:repository = PATH
|
---|
42 | .RS 4
|
---|
43 | Path of the directory where deleted files should be moved\&.
|
---|
44 | .sp
|
---|
45 | If this option is not set, the default path \&.recycle is used\&.
|
---|
46 | .RE
|
---|
47 | .PP
|
---|
48 | recycle:directory_mode = MODE
|
---|
49 | .RS 4
|
---|
50 | Set 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
|
---|
52 | If this option is not set, the default mode 0700 is used\&.
|
---|
53 | .RE
|
---|
54 | .PP
|
---|
55 | recycle:subdir_mode = MODE
|
---|
56 | .RS 4
|
---|
57 | Set MODE to the octal mode with which sub directories of the recycle repository should be created\&.
|
---|
58 | .sp
|
---|
59 | If this option is not set, subdirectories will be created with the mode from recycle:directory_mode\&.
|
---|
60 | .RE
|
---|
61 | .PP
|
---|
62 | recycle:keeptree = BOOL
|
---|
63 | .RS 4
|
---|
64 | Specifies 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
|
---|
67 | recycle:versions = BOOL
|
---|
68 | .RS 4
|
---|
69 | If 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
|
---|
72 | recycle:touch = BOOL
|
---|
73 | .RS 4
|
---|
74 | Specifies whether a file\'s access date should be updated when the file is moved to the repository\&.
|
---|
75 | .RE
|
---|
76 | .PP
|
---|
77 | recycle:touch_mtime = BOOL
|
---|
78 | .RS 4
|
---|
79 | Specifies whether a file\'s last modified date should be updated when the file is moved to the repository\&.
|
---|
80 | .RE
|
---|
81 | .PP
|
---|
82 | recycle:minsize = BYTES
|
---|
83 | .RS 4
|
---|
84 | Files that are smaller than the number of bytes specified by this parameter will not be put into the repository\&.
|
---|
85 | .RE
|
---|
86 | .PP
|
---|
87 | recycle:maxsize = BYTES
|
---|
88 | .RS 4
|
---|
89 | Files that are larger than the number of bytes specified by this parameter will not be put into the repository\&.
|
---|
90 | .RE
|
---|
91 | .PP
|
---|
92 | recycle:exclude = LIST
|
---|
93 | .RS 4
|
---|
94 | List 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
|
---|
97 | recycle:exclude_dir = LIST
|
---|
98 | .RS 4
|
---|
99 | List 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
|
---|
102 | recycle:noversions = LIST
|
---|
103 | .RS 4
|
---|
104 | Specifies 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
|
---|
108 | Move files "deleted" on
|
---|
109 | \fIshare\fR
|
---|
110 | to
|
---|
111 | \fI/data/share/\&.recycle\fR
|
---|
112 | instead 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
|
---|
130 | This man page is correct for version 3\&.0\&.25 of the Samba suite\&.
|
---|
131 | .SH "AUTHOR"
|
---|
132 | .PP
|
---|
133 | The 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\&.
|
---|