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_shell_snap.8">
6 <refentrytitle>vfs_shell_snap</refentrytitle>
7 <manvolnum>8</manvolnum>
8 <refmiscinfo class="source">Samba</refmiscinfo>
9 <refmiscinfo class="manual">System Administration tools</refmiscinfo>
10 <refmiscinfo class="version">4.3</refmiscinfo>
15 <refname>vfs_shell_snap</refname>
17 Shell script callouts for snapshot creation and deletion
23 <command>vfs objects = shell_snap</command>
28 <title>DESCRIPTION</title>
30 <para>This VFS module is part of the
31 <citerefentry><refentrytitle>samba</refentrytitle>
32 <manvolnum>8</manvolnum></citerefentry> suite.</para>
35 The <command>vfs_shell_snap</command> VFS provides shell-script
36 callouts for snapshot creation and deletion operations issued
37 by remote clients using the File Server Remote VSS Protocol
42 The following shell callouts may be configured in smb.conf:
45 <smbconfoption name="shell_snap:check path command"></smbconfoption>
48 Called when an FSRVP client wishes to check
49 whether a given share supports snapshot
50 create/delete requests.
53 The command is called with a single
54 <parameter>share_path</parameter> argument.
57 The command must return 0 if
58 <parameter>share_path</parameter> is capable of
64 <smbconfoption name="shell_snap:create command"></smbconfoption>
67 Called when an FSRVP client wishes to create
71 The command is called with a single
72 <parameter>share_path</parameter> argument.
75 The command must return 0 status if the
76 snapshot was successfully taken.
79 The command must output the path of the newly
80 created snapshot to stdout.
85 <smbconfoption name="shell_snap:delete command"></smbconfoption>
88 Called when an FSRVP client wishes to delete
92 The command is called with
93 <parameter>base_share_path</parameter> and
94 <parameter>snapshot_share_path</parameter>
98 The command must return 0 status if the
99 snapshot was successfully removed.
102 All commands are executed as the authenticated FSRVP client
107 This module is stackable.
112 <title>CONFIGURATION</title>
115 <smbconfsection name="[share]"/>
116 <smbconfoption name="vfs objects">shell_snap</smbconfoption>
117 <smbconfoption name="shell_snap:check path command">
118 snap_check_path.sh</smbconfoption>
119 <smbconfoption name="shell_snap:create command">
120 snap_create.sh</smbconfoption>
121 <smbconfoption name="shell_snap:delete command">
122 snap_delete.sh</smbconfoption>
126 Samba's FSRVP server must be configured in the [global] section:
130 <smbconfsection name="[global]"/>
131 <smbconfoption name="rpc_daemon:fssd">fork</smbconfoption>
132 <smbconfoption name="registry shares">yes</smbconfoption>
133 <smbconfoption name="include">registry</smbconfoption>
138 <title>VERSION</title>
141 This man page is correct for version 4.2.0 of the Samba suite.
146 <title>AUTHOR</title>
148 <para>The original Samba software and related utilities
149 were created by Andrew Tridgell. Samba is now developed
150 by the Samba Team as an Open Source project similar
151 to the way the Linux kernel is developed.</para>