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>
12 <refname>vfs_shadow_copy</refname>
13 <refpurpose>Make a Samba share read only for a specified time period</refpurpose>
18 <command>vfs objects = shadow_copy</command>
23 <title>DESCRIPTION</title>
25 <para>This VFS module is part of the
26 <citerefentry><refentrytitle>samba</refentrytitle>
27 <manvolnum>7</manvolnum></citerefentry> suite.</para>
29 <para>The <command>vfs_shadow_copy</command> VFS module functionality
30 that is similar to Microsoft Shadow Copy services. When setup properly,
31 this module allows Microsoft Shadow Copy clients to browse
32 "shadow copies" on Samba shares.
35 <para>This module is stackable.</para>
40 <title>CONFIGURATION</title>
42 <para><command>vfs_shadow_copy</command> relies on a filesystem
43 snapshot implementation. Many common filesystems have native
47 <para>Filesystem snapshots must be mounted on
48 specially named directories in order to be recognized by
49 <command>vfs_shadow_copy</command>. The snapshot mount points must
50 be immediate children of a the directory being shared.</para>
52 <para>The snapshot naming convention is @GMT-YYYY.MM.DD-hh.mm.ss,
55 <listitem><para><command>YYYY</command> is the 4 digit year</para></listitem>
56 <listitem><para><command>MM</command> is the 2 digit month</para></listitem>
57 <listitem><para><command>DD</command> is the 2 digit day</para></listitem>
58 <listitem><para><command>hh</command> is the 2 digit hour</para></listitem>
59 <listitem><para><command>mm</command> is the 2 digit minute</para></listitem>
60 <listitem><para><command>ss</command> is the 2 digit second.</para></listitem>
64 <para>The <command>vfs_shadow_copy</command> snapshot naming convention can be produced with the following
65 <citerefentry><refentrytitle>date</refentrytitle>
66 <manvolnum>1</manvolnum></citerefentry> command:
68 TZ=GMT date +@GMT-%Y.%m.%d-%H.%M.%S
69 </programlisting></para>
74 <title>EXAMPLES</title>
76 <para>Add shadow copy support to user home directories:</para>
78 <smbconfsection name="[homes]"/>
79 <smbconfoption name="vfs objects">shadow_copy</smbconfoption>
85 <title>CAVEATS</title>
87 <para>This is not a backup, archival, or version control solution.
90 <para>With Samba or Windows servers,
91 <command>vfs_shadow_copy</command> is designed to be an end-user
92 tool only. It does not replace or enhance your backup and
93 archival solutions and should in no way be considered as
94 such. Additionally, if you need version control, implement a
95 version control system.</para>
102 <title>VERSION</title>
104 <para>This man page is correct for version 3.0.25 of the Samba suite.
109 <title>AUTHOR</title>
111 <para>The original Samba software and related utilities
112 were created by Andrew Tridgell. Samba is now developed
113 by the Samba Team as an Open Source project similar
114 to the way the Linux kernel is developed.</para>