| 1 | '\" t
|
|---|
| 2 | .\" Title: vfs_shell_snap
|
|---|
| 3 | .\" Author: [see the "AUTHOR" section]
|
|---|
| 4 | .\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
|
|---|
| 5 | .\" Date: 05/02/2016
|
|---|
| 6 | .\" Manual: System Administration tools
|
|---|
| 7 | .\" Source: Samba 4.4
|
|---|
| 8 | .\" Language: English
|
|---|
| 9 | .\"
|
|---|
| 10 | .TH "VFS_SHELL_SNAP" "8" "05/02/2016" "Samba 4\&.4" "System Administration tools"
|
|---|
| 11 | .\" -----------------------------------------------------------------
|
|---|
| 12 | .\" * Define some portability stuff
|
|---|
| 13 | .\" -----------------------------------------------------------------
|
|---|
| 14 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|---|
| 15 | .\" http://bugs.debian.org/507673
|
|---|
| 16 | .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
|---|
| 17 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|---|
| 18 | .ie \n(.g .ds Aq \(aq
|
|---|
| 19 | .el .ds Aq '
|
|---|
| 20 | .\" -----------------------------------------------------------------
|
|---|
| 21 | .\" * set default formatting
|
|---|
| 22 | .\" -----------------------------------------------------------------
|
|---|
| 23 | .\" disable hyphenation
|
|---|
| 24 | .nh
|
|---|
| 25 | .\" disable justification (adjust text to left margin only)
|
|---|
| 26 | .ad l
|
|---|
| 27 | .\" -----------------------------------------------------------------
|
|---|
| 28 | .\" * MAIN CONTENT STARTS HERE *
|
|---|
| 29 | .\" -----------------------------------------------------------------
|
|---|
| 30 | .SH "NAME"
|
|---|
| 31 | vfs_shell_snap \- Shell script callouts for snapshot creation and deletion
|
|---|
| 32 | .SH "SYNOPSIS"
|
|---|
| 33 | .HP \w'\ 'u
|
|---|
| 34 | vfs objects = shell_snap
|
|---|
| 35 | .SH "DESCRIPTION"
|
|---|
| 36 | .PP
|
|---|
| 37 | This VFS module is part of the
|
|---|
| 38 | \fBsamba\fR(8)
|
|---|
| 39 | suite\&.
|
|---|
| 40 | .PP
|
|---|
| 41 | The
|
|---|
| 42 | vfs_shell_snap
|
|---|
| 43 | VFS provides shell\-script callouts for snapshot creation and deletion operations issued by remote clients using the File Server Remote VSS Protocol (FSRVP)\&.
|
|---|
| 44 | .PP
|
|---|
| 45 | The following shell callouts may be configured in smb\&.conf:
|
|---|
| 46 | .PP
|
|---|
| 47 | \m[blue]\fBshell_snap:check path command\fR\m[]
|
|---|
| 48 | .sp
|
|---|
| 49 | .RS 4
|
|---|
| 50 | .ie n \{\
|
|---|
| 51 | \h'-04'\(bu\h'+03'\c
|
|---|
| 52 | .\}
|
|---|
| 53 | .el \{\
|
|---|
| 54 | .sp -1
|
|---|
| 55 | .IP \(bu 2.3
|
|---|
| 56 | .\}
|
|---|
| 57 | Called when an FSRVP client wishes to check whether a given share supports snapshot create/delete requests\&.
|
|---|
| 58 | .RE
|
|---|
| 59 | .sp
|
|---|
| 60 | .RS 4
|
|---|
| 61 | .ie n \{\
|
|---|
| 62 | \h'-04'\(bu\h'+03'\c
|
|---|
| 63 | .\}
|
|---|
| 64 | .el \{\
|
|---|
| 65 | .sp -1
|
|---|
| 66 | .IP \(bu 2.3
|
|---|
| 67 | .\}
|
|---|
| 68 | The command is called with a single
|
|---|
| 69 | \fIshare_path\fR
|
|---|
| 70 | argument\&.
|
|---|
| 71 | .RE
|
|---|
| 72 | .sp
|
|---|
| 73 | .RS 4
|
|---|
| 74 | .ie n \{\
|
|---|
| 75 | \h'-04'\(bu\h'+03'\c
|
|---|
| 76 | .\}
|
|---|
| 77 | .el \{\
|
|---|
| 78 | .sp -1
|
|---|
| 79 | .IP \(bu 2.3
|
|---|
| 80 | .\}
|
|---|
| 81 | The command must return 0 if
|
|---|
| 82 | \fIshare_path\fR
|
|---|
| 83 | is capable of being snapshotted\&.
|
|---|
| 84 | .RE
|
|---|
| 85 | .sp
|
|---|
| 86 | .RE
|
|---|
| 87 | .PP
|
|---|
| 88 | \m[blue]\fBshell_snap:create command\fR\m[]
|
|---|
| 89 | .sp
|
|---|
| 90 | .RS 4
|
|---|
| 91 | .ie n \{\
|
|---|
| 92 | \h'-04'\(bu\h'+03'\c
|
|---|
| 93 | .\}
|
|---|
| 94 | .el \{\
|
|---|
| 95 | .sp -1
|
|---|
| 96 | .IP \(bu 2.3
|
|---|
| 97 | .\}
|
|---|
| 98 | Called when an FSRVP client wishes to create a snapshot\&.
|
|---|
| 99 | .RE
|
|---|
| 100 | .sp
|
|---|
| 101 | .RS 4
|
|---|
| 102 | .ie n \{\
|
|---|
| 103 | \h'-04'\(bu\h'+03'\c
|
|---|
| 104 | .\}
|
|---|
| 105 | .el \{\
|
|---|
| 106 | .sp -1
|
|---|
| 107 | .IP \(bu 2.3
|
|---|
| 108 | .\}
|
|---|
| 109 | The command is called with a single
|
|---|
| 110 | \fIshare_path\fR
|
|---|
| 111 | argument\&.
|
|---|
| 112 | .RE
|
|---|
| 113 | .sp
|
|---|
| 114 | .RS 4
|
|---|
| 115 | .ie n \{\
|
|---|
| 116 | \h'-04'\(bu\h'+03'\c
|
|---|
| 117 | .\}
|
|---|
| 118 | .el \{\
|
|---|
| 119 | .sp -1
|
|---|
| 120 | .IP \(bu 2.3
|
|---|
| 121 | .\}
|
|---|
| 122 | The command must return 0 status if the snapshot was successfully taken\&.
|
|---|
| 123 | .RE
|
|---|
| 124 | .sp
|
|---|
| 125 | .RS 4
|
|---|
| 126 | .ie n \{\
|
|---|
| 127 | \h'-04'\(bu\h'+03'\c
|
|---|
| 128 | .\}
|
|---|
| 129 | .el \{\
|
|---|
| 130 | .sp -1
|
|---|
| 131 | .IP \(bu 2.3
|
|---|
| 132 | .\}
|
|---|
| 133 | The command must output the path of the newly created snapshot to stdout\&.
|
|---|
| 134 | .RE
|
|---|
| 135 | .sp
|
|---|
| 136 | .RE
|
|---|
| 137 | .PP
|
|---|
| 138 | \m[blue]\fBshell_snap:delete command\fR\m[]
|
|---|
| 139 | .sp
|
|---|
| 140 | .RS 4
|
|---|
| 141 | .ie n \{\
|
|---|
| 142 | \h'-04'\(bu\h'+03'\c
|
|---|
| 143 | .\}
|
|---|
| 144 | .el \{\
|
|---|
| 145 | .sp -1
|
|---|
| 146 | .IP \(bu 2.3
|
|---|
| 147 | .\}
|
|---|
| 148 | Called when an FSRVP client wishes to delete a snapshot\&.
|
|---|
| 149 | .RE
|
|---|
| 150 | .sp
|
|---|
| 151 | .RS 4
|
|---|
| 152 | .ie n \{\
|
|---|
| 153 | \h'-04'\(bu\h'+03'\c
|
|---|
| 154 | .\}
|
|---|
| 155 | .el \{\
|
|---|
| 156 | .sp -1
|
|---|
| 157 | .IP \(bu 2.3
|
|---|
| 158 | .\}
|
|---|
| 159 | The command is called with
|
|---|
| 160 | \fIbase_share_path\fR
|
|---|
| 161 | and
|
|---|
| 162 | \fIsnapshot_share_path\fR
|
|---|
| 163 | arguments\&.
|
|---|
| 164 | .RE
|
|---|
| 165 | .sp
|
|---|
| 166 | .RS 4
|
|---|
| 167 | .ie n \{\
|
|---|
| 168 | \h'-04'\(bu\h'+03'\c
|
|---|
| 169 | .\}
|
|---|
| 170 | .el \{\
|
|---|
| 171 | .sp -1
|
|---|
| 172 | .IP \(bu 2.3
|
|---|
| 173 | .\}
|
|---|
| 174 | The command must return 0 status if the snapshot was successfully removed\&.
|
|---|
| 175 | .RE
|
|---|
| 176 | .sp
|
|---|
| 177 | .RE
|
|---|
| 178 | All commands are executed as the authenticated FSRVP client user\&.
|
|---|
| 179 | .PP
|
|---|
| 180 | This module is stackable\&.
|
|---|
| 181 | .SH "CONFIGURATION"
|
|---|
| 182 | .sp
|
|---|
| 183 | .if n \{\
|
|---|
| 184 | .RS 4
|
|---|
| 185 | .\}
|
|---|
| 186 | .nf
|
|---|
| 187 | \fI[share]\fR
|
|---|
| 188 | \m[blue]\fBvfs objects = shell_snap\fR\m[]
|
|---|
| 189 | \m[blue]\fBshell_snap:check path command = snap_check_path\&.sh\fR\m[]
|
|---|
| 190 | \m[blue]\fBshell_snap:create command = snap_create\&.sh\fR\m[]
|
|---|
| 191 | \m[blue]\fBshell_snap:delete command = snap_delete\&.sh\fR\m[]
|
|---|
| 192 |
|
|---|
| 193 | .fi
|
|---|
| 194 | .if n \{\
|
|---|
| 195 | .RE
|
|---|
| 196 | .\}
|
|---|
| 197 | .PP
|
|---|
|
|---|