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_copy.8">
6 <refentrytitle>vfs_shadow_copy</refentrytitle>
7 <manvolnum>8</manvolnum>
8 <refmiscinfo class="source">Samba</refmiscinfo>
9 <refmiscinfo class="manual">System Administration tools</refmiscinfo>
10 <refmiscinfo class="version">3.2</refmiscinfo>
15 <refname>vfs_shadow_copy</refname>
16 <refpurpose>Make a Samba share read only for a specified time period</refpurpose>
21 <command>vfs objects = shadow_copy</command>
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_copy</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.
38 <para>This module is stackable.</para>
43 <title>CONFIGURATION</title>
45 <para><command>vfs_shadow_copy</command> relies on a filesystem
46 snapshot implementation. Many common filesystems have native
50 <para>Filesystem snapshots must be mounted on
51 specially named directories in order to be recognized by
52 <command>vfs_shadow_copy</command>. The snapshot mount points must
53 be immediate children of a the directory being shared.</para>
55 <para>The snapshot naming convention is @GMT-YYYY.MM.DD-hh.mm.ss,
58 <listitem><para><command>YYYY</command> is the 4 digit year</para></listitem>
59 <listitem><para><command>MM</command> is the 2 digit month</para></listitem>
60 <listitem><para><command>DD</command> is the 2 digit day</para></listitem>
61 <listitem><para><command>hh</command> is the 2 digit hour</para></listitem>
62 <listitem><para><command>mm</command> is the 2 digit minute</para></listitem>
63 <listitem><para><command>ss</command> is the 2 digit second.</para></listitem>
67 <para>The <command>vfs_shadow_copy</command> snapshot naming convention can be produced with the following
68 <citerefentry><refentrytitle>date</refentrytitle>
69 <manvolnum>1</manvolnum></citerefentry> command:
71 TZ=GMT date +@GMT-%Y.%m.%d-%H.%M.%S
72 </programlisting></para>
77 <title>EXAMPLES</title>
79 <para>Add shadow copy support to user home directories:</para>
81 <smbconfsection name="[homes]"/>
82 <smbconfoption name="vfs objects">shadow_copy</smbconfoption>
88 <title>CAVEATS</title>
90 <para>This is not a backup, archival, or version control solution.
93 <para>With Samba or Windows servers,
94 <command>vfs_shadow_copy</command> is designed to be an end-user
95 tool only. It does not replace or enhance your backup and
96 archival solutions and should in no way be considered as
97 such. Additionally, if you need version control, implement a
98 version control system.</para>
105 <title>VERSION</title>
107 <para>This man page is correct for version 3.0.25 of the Samba suite.
112 <title>AUTHOR</title>
114 <para>The original Samba software and related utilities
115 were created by Andrew Tridgell. Samba is now developed
116 by the Samba Team as an Open Source project similar
117 to the way the Linux kernel is developed.</para>