doc: add vfs_shell_snap manpage
authorDavid Disseldorp <ddiss@samba.org>
Mon, 7 Jul 2014 12:16:13 +0000 (14:16 +0200)
committerDavid Disseldorp <ddiss@samba.org>
Mon, 30 Mar 2015 14:16:31 +0000 (16:16 +0200)
Document usage of the shell_snap VFS module, explaining when and how
each of the shell script commands are called.

Signed-off-by: David Disseldorp <ddiss@samba.org>
docs-xml/manpages/vfs_shell_snap.8.xml [new file with mode: 0644]
docs-xml/wscript_build

diff --git a/docs-xml/manpages/vfs_shell_snap.8.xml b/docs-xml/manpages/vfs_shell_snap.8.xml
new file mode 100644 (file)
index 0000000..7155662
--- /dev/null
@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
+<refentry id="vfs_shell_snap.8">
+
+<refmeta>
+       <refentrytitle>vfs_shell_snap</refentrytitle>
+       <manvolnum>8</manvolnum>
+       <refmiscinfo class="source">Samba</refmiscinfo>
+       <refmiscinfo class="manual">System Administration tools</refmiscinfo>
+       <refmiscinfo class="version">4.2</refmiscinfo>
+</refmeta>
+
+
+<refnamediv>
+       <refname>vfs_shell_snap</refname>
+       <refpurpose>
+               Shell script callouts for snapshot creation and deletion
+       </refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+       <cmdsynopsis>
+               <command>vfs objects = shell_snap</command>
+       </cmdsynopsis>
+</refsynopsisdiv>
+
+<refsect1>
+       <title>DESCRIPTION</title>
+
+       <para>This VFS module is part of the
+       <citerefentry><refentrytitle>samba</refentrytitle>
+       <manvolnum>8</manvolnum></citerefentry> suite.</para>
+
+       <para>
+               The <command>vfs_shell_snap</command> VFS provides shell-script
+               callouts for snapshot creation and deletion operations issued
+               by remote clients using the File Server Remote VSS Protocol
+               (FSRVP).
+       </para>
+
+       <para>
+               The following shell callouts may be configured in smb.conf:
+       </para>
+       <para>
+               <smbconfoption name="shell_snap:check path command"></smbconfoption>
+               <itemizedlist>
+                       <listitem><para>
+                               Called when an FSRVP client wishes to check
+                               whether a given share supports snapshot
+                               create/delete requests.
+                       </para></listitem>
+                       <listitem><para>
+                               The command is called with a single
+                               <parameter>share_path</parameter> argument.
+                       </para></listitem>
+                       <listitem><para>
+                               The command must return 0 if
+                               <parameter>share_path</parameter> is capable of
+                               being snapshotted.
+                       </para></listitem>
+               </itemizedlist>
+       </para>
+       <para>
+               <smbconfoption name="shell_snap:create command"></smbconfoption>
+               <itemizedlist>
+                       <listitem><para>
+                               Called when an FSRVP client wishes to create
+                               a snapshot.
+                       </para></listitem>
+                       <listitem><para>
+                               The command is called with a single
+                               <parameter>share_path</parameter> argument.
+                       </para></listitem>
+                       <listitem><para>
+                               The command must return 0 status if the
+                               snapshot was successfully taken.
+                       </para></listitem>
+                       <listitem><para>
+                               The command must output the path of the newly
+                               created snapshot to stdout.
+                       </para></listitem>
+               </itemizedlist>
+       </para>
+       <para>
+               <smbconfoption name="shell_snap:delete command"></smbconfoption>
+               <itemizedlist>
+                       <listitem><para>
+                               Called when an FSRVP client wishes to delete
+                               a snapshot.
+                       </para></listitem>
+                       <listitem><para>
+                               The command is called with
+                               <parameter>base_share_path</parameter> and
+                               <parameter>snapshot_share_path</parameter>
+                               arguments.
+                       </para></listitem>
+                       <listitem><para>
+                               The command must return 0 status if the
+                               snapshot was successfully removed.
+                       </para></listitem>
+               </itemizedlist>
+               All commands are executed as the authenticated FSRVP client
+               user.
+       </para>
+
+       <para>
+               This module is stackable.
+       </para>
+</refsect1>
+
+<refsect1>
+       <title>CONFIGURATION</title>
+
+       <programlisting>
+               <smbconfsection name="[share]"/>
+               <smbconfoption name="vfs objects">shell_snap</smbconfoption>
+               <smbconfoption name="shell_snap:check path command">
+                       snap_check_path.sh</smbconfoption>
+               <smbconfoption name="shell_snap:create command">
+                       snap_create.sh</smbconfoption>
+               <smbconfoption name="shell_snap:delete command">
+                       snap_delete.sh</smbconfoption>
+       </programlisting>
+
+       <para>
+               Samba's FSRVP server must be configured in the [global] section:
+       </para>
+
+       <programlisting>
+               <smbconfsection name="[global]"/>
+               <smbconfoption name="rpc_daemon:fssd">fork</smbconfoption>
+               <smbconfoption name="registry shares">yes</smbconfoption>
+               <smbconfoption name="include">registry</smbconfoption>
+       </programlisting>
+</refsect1>
+
+<refsect1>
+       <title>VERSION</title>
+
+       <para>
+               This man page is correct for version 4.2.0 of the Samba suite.
+       </para>
+</refsect1>
+
+<refsect1>
+       <title>AUTHOR</title>
+
+       <para>The 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.</para>
+
+</refsect1>
+
+</refentry>
index 66da39976708919f6a9ce0c6dec567d0ec82a2e8..f54ae15b8fb94ef63d5c6d8c8fcd58b2d9d08a2a 100644 (file)
@@ -77,6 +77,7 @@ manpages='''
          manpages/vfs_scannedonly.8
          manpages/vfs_shadow_copy.8
          manpages/vfs_shadow_copy2.8
+        manpages/vfs_shell_snap.8
          manpages/vfs_smb_traffic_analyzer.8
         manpages/vfs_snapper.8
          manpages/vfs_streams_depot.8