source: trunk/server/docs/manpages/vfs_shadow_copy2.8@ 752

Last change on this file since 752 was 752, checked in by Silvan Scherrer, 13 years ago

Samba Server: updated trunk to 3.6.9 2nd part

File size: 5.7 KB
Line 
1'\" t
2.\" Title: vfs_shadow_copy2
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5.\" Date: 10/29/2012
6.\" Manual: System Administration tools
7.\" Source: Samba 3.6
8.\" Language: English
9.\"
10.TH "VFS_SHADOW_COPY2" "8" "10/29/2012" "Samba 3\&.6" "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_shadow_copy2 \- Expose snapshots to Windows clients as shadow copies\&.
23.SH "SYNOPSIS"
24.HP \w'\ 'u
25vfs objects = shadow_copy2
26.SH "DESCRIPTION"
27.PP
28This VFS module is part of the
29\fBsamba\fR(7)
30suite\&.
31.PP
32The
33vfs_shadow_copy2
34VFS module functionality that is similar to Microsoft Shadow Copy services\&. When setup properly, this module allows Microsoft Shadow Copy clients to browse "shadow copies" on Samba shares\&.
35.PP
36This is a 2nd implementation of a shadow copy module\&. This version has the following features:
37.sp
38.RS 4
39.ie n \{\
40\h'-04' 1.\h'+01'\c
41.\}
42.el \{\
43.sp -1
44.IP " 1." 4.2
45.\}
46You don\'t need to populate your shares with symlinks to the snapshots\&. This can be very important when you have thousands of shares, or use [homes]\&.
47.RE
48.sp
49.RS 4
50.ie n \{\
51\h'-04' 2.\h'+01'\c
52.\}
53.el \{\
54.sp -1
55.IP " 2." 4.2
56.\}
57The inode number of the files is altered so it is different from the original\&. This allows the \'restore\' button to work without a sharing violation\&.
58.RE
59.sp
60.RE
61.PP
62This module is stackable\&.
63.SH "CONFIGURATION"
64.PP
65vfs_shadow_copy2
66relies on a filesystem snapshot implementation\&. Many common filesystems have native support for this\&.
67.PP
68Filesystem snapshots must be mounted on specially named directories in order to be recognized by
69vfs_shadow_copy2\&. The snapshot mount points must be immediate children of a the directory being shared\&.
70.PP
71The snapshot naming convention is @GMT\-YYYY\&.MM\&.DD\-hh\&.mm\&.ss, where:
72.sp
73.RS 4
74.ie n \{\
75\h'-04'\(bu\h'+03'\c
76.\}
77.el \{\
78.sp -1
79.IP \(bu 2.3
80.\}
81YYYY
82is the 4 digit year
83.RE
84.sp
85.RS 4
86.ie n \{\
87\h'-04'\(bu\h'+03'\c
88.\}
89.el \{\
90.sp -1
91.IP \(bu 2.3
92.\}
93MM
94is the 2 digit month
95.RE
96.sp
97.RS 4
98.ie n \{\
99\h'-04'\(bu\h'+03'\c
100.\}
101.el \{\
102.sp -1
103.IP \(bu 2.3
104.\}
105DD
106is the 2 digit day
107.RE
108.sp
109.RS 4
110.ie n \{\
111\h'-04'\(bu\h'+03'\c
112.\}
113.el \{\
114.sp -1
115.IP \(bu 2.3
116.\}
117hh
118is the 2 digit hour
119.RE
120.sp
121.RS 4
122.ie n \{\
123\h'-04'\(bu\h'+03'\c
124.\}
125.el \{\
126.sp -1
127.IP \(bu 2.3
128.\}
129mm
130is the 2 digit minute
131.RE
132.sp
133.RS 4
134.ie n \{\
135\h'-04'\(bu\h'+03'\c
136.\}
137.el \{\
138.sp -1
139.IP \(bu 2.3
140.\}
141ss
142is the 2 digit second\&.
143.RE
144.sp
145.RE
146.PP
147The
148vfs_shadow_copy2
149snapshot naming convention can be produced with the following
150\fBdate\fR(1)
151command:
152.sp
153.if n \{\
154.RS 4
155.\}
156.nf
157 TZ=GMT date +@GMT\-%Y\&.%m\&.%d\-%H\&.%M\&.%S
158
159.fi
160.if n \{\
161.RE
162.\}
163.SH "OPTIONS"
164.PP
165shadow:snapdir = SNAPDIR
166.RS 4
167Path to the directory where snapshots are kept\&.
168.RE
169.PP
170shadow:basedir = BASEDIR
171.RS 4
172Path to the base directory that snapshots are from\&.
173.RE
174.PP
175shadow:sort = asc/desc, or not specified for unsorted (default)
176.RS 4
177By this parameter one can specify that the shadow copy directories should be sorted before they are sent to the client\&. This can be beneficial as unix filesystems are usually not listed alphabetically sorted\&. If enabled, you typically want to specify descending order\&.
178.RE
179.PP
180shadow:localtime = yes/no
181.RS 4
182This is an optional parameter that indicates whether the snapshot names are in UTC/GMT or in local time\&. By default UTC is expected\&.
183.RE
184.PP
185shadow:format = format specification for snapshot names
186.RS 4
187This is an optional parameter that specifies the format specification for the naming of snapshots\&. The format must be compatible with the conversion specifications recognized by str[fp]time\&. The default value is "@GMT\-%Y\&.%m\&.%d\-%H\&.%M\&.%S"\&.
188.RE
189.PP
190shadow:fixinodes = yes/no
191.RS 4
192If you enable
193shadow:fixinodes
194then this module will modify the apparent inode number of files in the snapshot directories using a hash of the files path\&. This is needed for snapshot systems where the snapshots have the same device:inode number as the original files (such as happens with GPFS snapshots)\&. If you don\'t set this option then the \'restore\' button in the shadow copy UI will fail with a sharing violation\&.
195.RE
196.SH "EXAMPLES"
197.PP
198Add shadow copy support to user home directories:
199.sp
200.if n \{\
201.RS 4
202.\}
203.nf
204 \fI[homes]\fR
205 \m[blue]\fBvfs objects = shadow_copy2\fR\m[]
206 \m[blue]\fBshadow:snapdir = /data/snapshots\fR\m[]
207 \m[blue]\fBshadow:basedir = /data/home\fR\m[]
208 \m[blue]\fBshadow:sort = desc\fR\m[]
209.fi
210.if n \{\
211.RE
212.\}
213.SH "CAVEATS"
214.PP
215This is not a backup, archival, or version control solution\&.
216.PP
217With Samba or Windows servers,
218vfs_shadow_copy2
219is designed to be an end\-user tool only\&. It does not replace or enhance your backup and archival solutions and should in no way be considered as such\&. Additionally, if you need version control, implement a version control system\&.
220.SH "VERSION"
221.PP
222This man page is correct for version 3\&.2\&.7 of the Samba suite\&.
223.SH "AUTHOR"
224.PP
225The 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.