WHATSNEW: Add changes since 3.5.11.
[Samba.git] / docs-xml / manpages-3 / vfs_shadow_copy2.8.xml
blob4823a41952009ebd9e8d8fb509588b9414ec0f4c
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
3 <refentry id="vfs_shadow_copy2.8">
5 <refmeta>
6         <refentrytitle>vfs_shadow_copy2</refentrytitle>
7         <manvolnum>8</manvolnum>
8         <refmiscinfo class="source">Samba</refmiscinfo>
9         <refmiscinfo class="manual">System Administration tools</refmiscinfo>
10         <refmiscinfo class="version">3.5</refmiscinfo>
11 </refmeta>
14 <refnamediv>
15         <refname>vfs_shadow_copy2</refname>
16         <refpurpose>Expose snapshots to Windows clients as shadow copies.</refpurpose>
17 </refnamediv>
19 <refsynopsisdiv>
20         <cmdsynopsis>
21                 <command>vfs objects = shadow_copy2</command>
22         </cmdsynopsis>
23 </refsynopsisdiv>
25 <refsect1>
26         <title>DESCRIPTION</title>
28         <para>This VFS module is part of the
29         <citerefentry><refentrytitle>samba</refentrytitle>
30         <manvolnum>7</manvolnum></citerefentry> suite.</para>
32         <para>The <command>vfs_shadow_copy2</command> VFS module functionality
33         that is similar to Microsoft Shadow Copy services. When setup properly,
34         this module allows Microsoft Shadow Copy clients to browse
35         "shadow copies" on Samba shares.
36         </para>
38         <para>This is a 2nd implementation of a shadow copy module. This
39         version has the following features:</para>
40         <orderedlist continuation="restarts" inheritnum="ignore" numeration="arabic">
41         <listitem><para>You don't need to populate your shares with symlinks to the
42         snapshots. This can be very important when you have thousands of
43         shares, or use [homes].</para></listitem>
44         <listitem><para>The inode number of the files is altered so it is different
45         from the original. This allows the 'restore' button to work
46         without a sharing violation.</para></listitem>
47         </orderedlist>
49         <para>This module is stackable.</para>
51 </refsect1>
53 <refsect1>
54         <title>CONFIGURATION</title>
56         <para><command>vfs_shadow_copy2</command> relies on a filesystem
57         snapshot implementation. Many common filesystems have native
58         support for this.
59         </para>
61         <para>Filesystem snapshots must be mounted on
62         specially named directories in order to be recognized by
63         <command>vfs_shadow_copy2</command>. The snapshot mount points must
64         be immediate children of a the directory being shared.</para>
66         <para>The snapshot naming convention is @GMT-YYYY.MM.DD-hh.mm.ss,
67         where:
68         <itemizedlist>
69                 <listitem><para><command>YYYY</command> is the 4 digit year</para></listitem>
70                 <listitem><para><command>MM</command> is the 2 digit month</para></listitem>
71                 <listitem><para><command>DD</command> is the 2 digit day</para></listitem>
72                 <listitem><para><command>hh</command> is the 2 digit hour</para></listitem>
73                 <listitem><para><command>mm</command> is the 2 digit minute</para></listitem>
74                 <listitem><para><command>ss</command> is the 2 digit second.</para></listitem>
75                 </itemizedlist>
76         </para>
78         <para>The <command>vfs_shadow_copy2</command> snapshot naming convention can be
79         produced with the following <citerefentry><refentrytitle>date</refentrytitle>
80         <manvolnum>1</manvolnum></citerefentry> command:
81         <programlisting>
82         TZ=GMT date +@GMT-%Y.%m.%d-%H.%M.%S
83         </programlisting></para>
85 </refsect1>
87 <refsect1>
88         <title>OPTIONS</title>
90         <variablelist>
91                 <varlistentry>
92                 <term>shadow:snapdir = SNAPDIR
93                 </term>
94                 <listitem>
95                 <para>Path to the directory where snapshots are kept.
96                 </para>
97                 </listitem>
98                 </varlistentry>
100                 <varlistentry>
101                 <term>shadow:basedir = BASEDIR
102                 </term>
103                 <listitem>
104                 <para>Path to the base directory that snapshots are from.
105                 </para>
106                 </listitem>
107                 </varlistentry>
109                 <varlistentry>
110                 <term>shadow:fixinodes = yes/no
111                 </term>
112                 <listitem>
113                 <para>If you enable <command moreinfo="none">shadow:fixinodes
114                 </command> then this module will modify the apparent inode
115                 number of files in the snapshot directories using a hash of the
116                 files path. This is needed for snapshot systems where the
117                 snapshots have the same device:inode number as the original
118                 files (such as happens with GPFS snapshots). If you don't set
119                 this option then the 'restore' button in the shadow copy UI
120                 will fail with a sharing violation.
121                 </para>
122                 </listitem>
123                 </varlistentry>
124                 </variablelist>
125 </refsect1>
127 <refsect1>
128         <title>EXAMPLES</title>
130         <para>Add shadow copy support to user home directories:</para>
131 <programlisting>
132         <smbconfsection name="[homes]"/>
133         <smbconfoption name="vfs objects">shadow_copy2</smbconfoption>
134         <smbconfoption name="shadow:snapdir">/data/snaphots</smbconfoption>
135         <smbconfoption name="shadow:basedir">/data/home</smbconfoption>
136 </programlisting>
138 </refsect1>
140 <refsect1>
141         <title>CAVEATS</title>
143         <para>This is not a backup, archival, or version control solution.
144         </para>
146         <para>With Samba or Windows servers,
147         <command>vfs_shadow_copy2</command> is designed to be an end-user
148         tool only. It does not replace or enhance your backup and
149         archival solutions and should in no way be considered as
150         such. Additionally, if you need version control, implement a
151         version control system.</para>
153 </refsect1>
157 <refsect1>
158         <title>VERSION</title>
160         <para>This man page is correct for version 3.2.7 of the Samba suite.
161         </para>
162 </refsect1>
164 <refsect1>
165         <title>AUTHOR</title>
167         <para>The original Samba software and related utilities
168         were created by Andrew Tridgell. Samba is now developed
169         by the Samba Team as an Open Source project similar
170         to the way the Linux kernel is developed.</para>
172 </refsect1>
174 </refentry>