source: branches/samba-3.5.x/docs/manpages/vfs_shadow_copy2.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.8 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: 12/14/2012
6.\" Manual: System Administration tools
7.\" Source: Samba 3.5
8.\" Language: English
9.\"
10.TH "VFS_SHADOW_COPY2" "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_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.sp
144.RE
145.PP
146The
147vfs_shadow_copy2
148snapshot naming convention can be produced with the following
149\fBdate\fR(1)
150command:
151.sp
152.if n \{\
153.RS 4
154.\}
155.nf
156 TZ=GMT date +@GMT\-%Y\&.%m\&.%d\-%H\&.%M\&.%S
157
158.fi
159.if n \{\
160.RE
161.\}
162.SH "OPTIONS"
163.PP
164shadow:snapdir = SNAPDIR
165.RS 4
166Path to the directory where snapshots are kept\&.
167.RE
168.PP
169shadow:basedir = BASEDIR
170.RS 4
171Path to the base directory that snapshots are from\&.
172.RE
173.PP
174shadow:fixinodes = yes/no
175.RS 4
176If you enable
177shadow:fixinodes
178then 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\&.
179.RE
180.SH "EXAMPLES"
181.PP
182Add shadow copy support to user home directories:
183.sp
184.if n \{\
185.RS 4
186.\}
187.nf
188 \fI[homes]\fR
189 \m[blue]\fBvfs objects = shadow_copy2\fR\m[]
190 \m[blue]\fBshadow:snapdir = /data/snaphots\fR\m[]
191 \m[blue]\fBshadow:basedir = /data/home\fR\m[]
192.fi
193.if n \{\
194.RE
195.\}
196.SH "CAVEATS"
197.PP
198This is not a backup, archival, or version control solution\&.
199.PP
200With Samba or Windows servers,
201vfs_shadow_copy2
202is 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\&.
203.SH "VERSION"
204.PP
205This man page is correct for version 3\&.2\&.7 of the Samba suite\&.
206.SH "AUTHOR"
207.PP
208The 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.