From: Dan Langille Date: Thu, 12 Jun 2008 12:06:26 +0000 (+0000) Subject: When you need multiple commands for for mounting X-Git-Tag: Release-3.0.0~1318 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=522e3564dc8ee9d44dc07d809d1816e62623b420;p=bacula%2Fdocs When you need multiple commands for for mounting etc, it is better to use a shell script. --- diff --git a/docs/manuals/en/install/storedconf.tex b/docs/manuals/en/install/storedconf.tex index 34133bf9..d46ef9bf 100644 --- a/docs/manuals/en/install/storedconf.tex +++ b/docs/manuals/en/install/storedconf.tex @@ -716,6 +716,7 @@ able to use a mount command such as: See the \ilink {Edit Codes}{mountcodes} section below for more details of the editing codes that can be used in this directive. + If you need to specify multiple commands, create a shell script. \item [Unmount Command = {\it name-string}] \index[sd]{Unmount Command} @@ -735,6 +736,7 @@ the editing codes that can be used in this directive. See the \ilink {Edit Codes}{mountcodes} section below for more details of the editing codes that can be used in this directive. + If you need to specify multiple commands, create a shell script. \item [Minimum block size = {\it size-in-bytes}] \index[sd]{Minimum block size} @@ -1099,6 +1101,29 @@ apply to removable filesystems such as USB in addition to DVD. \end{verbatim} \normalsize +For some media, you may need multiple commands. If so, it is recommended +that you use a shell script instead of putting them all into the Mount +Command. For example, instead of this: + +\footnotesize +\begin{verbatim} + Mount Command = "/usr/local/bin/mymount" +\end{verbatim} +\normalsize + +Where that script contains: + +\footnotesize +\begin{verbatim} +#!/bin/sh +ndasadmin enable -s 1 -o w +sleep 2 +mount /dev/ndas-00323794-0p1 /backup +\end{verbatim} +\normalsize + +Similar consideration should be given to all other Command parameters. + \item [Unmount Command = {\it name-string}] \index[sd]{Unmount Command} \index[sd]{Directive!Unmount Command} @@ -1114,6 +1139,8 @@ apply to removable filesystems such as USB in addition to DVD. \end{verbatim} \normalsize + If you need to specify multiple commands, create a shell script. + \item [Write Part Command = {\it name-string}] \index[sd]{Write Part Command} \index[sd]{Directive!Write Part Command} @@ -1137,6 +1164,8 @@ apply to removable filesystems such as USB in addition to DVD. in the default bacula-sd.conf file. To use it, simply remove the comment (\#) symbol. + If you need to specify multiple commands, create a shell script. + \item [Free Space Command = {\it name-string}] \index[sd]{Free Space Command} @@ -1166,6 +1195,8 @@ apply to removable filesystems such as USB in addition to DVD. If you do not set it, Bacula will expect there is always free space on the device. + If you need to specify multiple commands, create a shell script. + \end{description} %% This pulls in the Autochanger resource from another file.