1 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>vfs_shadow_copy</title><link rel="stylesheet" href="samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.68.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="vfs_shadow_copy.8"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>vfs_shadow_copy — Make a Samba share read only for a specified time period</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">vfs objects = shadow_copy</code> </p></div></div><div class="refsect1" lang="en"><a name="id263118"></a><h2>DESCRIPTION</h2><p>This VFS module is part of the |
---|
2 | <a href="samba.7.html"><span class="citerefentry"><span class="refentrytitle">samba</span>(7)</span></a> suite.</p><p>The <span><strong class="command">vfs_shadow_copy</strong></span> VFS module functionality |
---|
3 | that is similar to Microsoft Shadow Copy services. When setup properly, |
---|
4 | this module allows Microsoft Shadow Copy clients to browse |
---|
5 | "shadow copies" on Samba shares. |
---|
6 | </p><p>This module is stackable.</p></div><div class="refsect1" lang="en"><a name="id230793"></a><h2>CONFIGURATION</h2><p><span><strong class="command">vfs_shadow_copy</strong></span> relies on a filesystem |
---|
7 | snapshot implementation. Many common filesystems have native |
---|
8 | support for this. |
---|
9 | </p><p>Filesystem snapshots must be mounted on |
---|
10 | specially named directories in order to be recognized by |
---|
11 | <span><strong class="command">vfs_shadow_copy</strong></span>. The snapshot mount points must |
---|
12 | be immediate children of a the directory being shared.</p><p>The snapshot naming convention is @GMT-YYYY.MM.DD-hh.mm.ss, |
---|
13 | where: |
---|
14 | </p><div class="itemizedlist"><ul type="disc"><li><p><span><strong class="command">YYYY</strong></span> is the 4 digit year</p></li><li><p><span><strong class="command">MM</strong></span> is the 2 digit month</p></li><li><p><span><strong class="command">DD</strong></span> is the 2 digit day</p></li><li><p><span><strong class="command">hh</strong></span> is the 2 digit hour</p></li><li><p><span><strong class="command">mm</strong></span> is the 2 digit minute</p></li><li><p><span><strong class="command">ss</strong></span> is the 2 digit second.</p></li></ul></div><p> |
---|
15 | </p><p>The <span><strong class="command">vfs_shadow_copy</strong></span> snapshot naming convention can be produced with the following |
---|
16 | <a href="date.1.html"><span class="citerefentry"><span class="refentrytitle">date</span>(1)</span></a> command: |
---|
17 | </p><pre class="programlisting"> |
---|
18 | TZ=GMT date +@GMT-%Y.%m.%d-%H.%M.%S |
---|
19 | </pre></div><div class="refsect1" lang="en"><a name="id231428"></a><h2>EXAMPLES</h2><p>Add shadow copy support to user home directories:</p><pre class="programlisting"> |
---|
20 | <em class="parameter"><code>[homes]</code></em> |
---|
21 | <a class="indexterm" name="id231447"></a>vfs objects = shadow_copy |
---|
22 | </pre></div><div class="refsect1" lang="en"><a name="id231456"></a><h2>CAVEATS</h2><p>This is not a backup, archival, or version control solution. |
---|
23 | </p><p>With Samba or Windows servers, |
---|
24 | <span><strong class="command">vfs_shadow_copy</strong></span> is designed to be an end-user |
---|
25 | tool only. It does not replace or enhance your backup and |
---|
26 | archival solutions and should in no way be considered as |
---|
27 | such. Additionally, if you need version control, implement a |
---|
28 | version control system.</p></div><div class="refsect1" lang="en"><a name="id231478"></a><h2>VERSION</h2><p>This man page is correct for version 3.0.25 of the Samba suite. |
---|
29 | </p></div><div class="refsect1" lang="en"><a name="id231489"></a><h2>AUTHOR</h2><p>The original Samba software and related utilities |
---|
30 | were created by Andrew Tridgell. Samba is now developed |
---|
31 | by the Samba Team as an Open Source project similar |
---|
32 | to the way the Linux kernel is developed.</p></div></div></body></html> |
---|