4 \section*{Client/File daemon Configuration}
5 \label{_ChapterStart25}
6 \index[general]{Configuration!Client/File daemon }
7 \index[general]{Client/File daemon Configuration }
8 \addcontentsline{toc}{section}{Client/File daemon Configuration}
11 \index[general]{General }
12 \addcontentsline{toc}{subsection}{General}
14 The Client (or File Daemon) Configuration is one of the simpler ones to
15 specify. Generally, other than changing the Client name so that error messages
16 are easily identified, you will not need to modify the default Client
19 For a general discussion of configuration file and resources including the
20 data types recognized by {\bf Bacula}, please see the
21 \ilink{Configuration}{_ChapterStart16} chapter of this manual. The
22 following Client Resource definitions must be defined:
26 \ilink{Client}{ClientResource} -- to define what Clients are to
29 \ilink{Director}{DirectorResource} -- to define the Director's
30 name and its access password.
32 \ilink{Messages}{_ChapterStart15} -- to define where error and
33 information messages are to be sent.
36 \subsection*{The Client Resource}
37 \label{ClientResource}
38 \index[general]{Resource!Client }
39 \index[general]{Client Resource }
40 \addcontentsline{toc}{subsection}{Client Resource}
42 The Client Resource (or FileDaemon) resource defines the name of the Client
43 (as used by the Director) as well as the port on which the Client listens for
48 \item [Client (or FileDaemon)]
49 \index[fd]{Client (or FileDaemon) }
50 Start of the Client records. There must be one and only one Client resource
51 in the configuration file, since it defines the properties of the current
54 \item [Name = \lt{}name\gt{}]
56 The client name that must be used by the Director when connecting. Generally,
57 it is a good idea to use a name related to the machine so that error messages
58 can be easily identified if you have multiple Clients. This record is
61 \item [Working Directory = \lt{}Directory\gt{}]
62 \index[fd]{Working Directory }
63 This directive is mandatory and specifies a directory in which the File
64 daemon may put its status files. This directory should be used only by {\bf
65 Bacula}, but may be shared by other Bacula daemons. This record is required
67 \item [Pid Directory = \lt{}Directory\gt{}]
68 \index[dir]{Pid Directory }
69 This directive is mandatory and specifies a directory in which the Director
70 may put its process Id file files. The process Id file is used to shutdown
71 Bacula and to prevent multiple copies of Bacula from running simultaneously.
72 This record is required. Standard shell expansion of the {\bf Directory} is
73 done when the configuration file is read so that values such as {\bf \$HOME}
74 will be properly expanded.
76 Typically on Linux systems, you will set this to: {\bf /var/run}. If you are
77 not installing Bacula in the system directories, you can use the {\bf Working
78 Directory} as defined above.
80 \item [Heartbeat Interval = \lt{}time-interval\gt{}]
81 \index[dir]{Heartbeat Interval }
82 This record defines an interval of time. For each heartbeat that the File
83 daemon receives from the Storage daemon, it will forward it to the Director.
84 In addition, if no heartbeat has been received from the Storage daemon and
85 thus forwarded the File daemon will send a heartbeat signal to the Director
86 and to the Storage daemon to keep the channels active. The default interval
87 is zero which disables the heartbeat. This feature is particularly useful if
88 you have a router such as 3Com that does not follow Internet standards and
89 times out an inactive connection after a short duration.
91 \item [Maximum Concurrent Jobs = \lt{}number\gt{}]
92 \index[dir]{Maximum Concurrent Jobs }
93 where \lt{}number\gt{} is the maximum number of Jobs that should run
94 concurrently. The default is set to 2, but you may set it to a larger number.
95 Each contact from the Director (e.g. status request, job start request) is
96 considered as a Job, so if you want to be able to do a {\bf status} request
97 in the console at the same time as a Job is running, you will need to set
98 this value greater than 1.
100 \item [FDAddresses = \lt{}IP-address-specification\gt{}]
101 \index[console]{FDAddresses }
102 Specify the ports and addresses on which the Director daemon will listen for
103 Bacula Console connections. Probably the simplest way to explain is to show
108 FDAddresses = { ip = {
109 addr = 1.2.3.4; port = 1205; }
111 addr = 1.2.3.4; port = http; }
124 addr = 201:220:222::2
127 addr = bluedot.thun.net
133 where ip, ip4, ip6, addr, and port are all keywords. Note, that the address
134 can be specified as either a dotted quadruple, or IPv6 colon notation, or as
135 a symbolic name (only in the ip specification). Also, port can be specified
136 as a number or as the mnemonic value from the /etc/services file. If a port
137 is not specified, the default will be used. If an ip section is specified,
138 the resolution can be made either by IPv4 or IPv6. If ip4 is specified, then
139 only IPv4 resolutions will be permitted, and likewise with ip6.
141 \item [FDPort = \lt{}port-number\gt{}]
142 \index[console]{FDPort }
143 This specifies the port number on which the Client listens for Director
144 connections. It must agree with the FDPort specified in the Client resource
145 of the Director's configuration file. The default is 9102.
147 \item [FDAddress = \lt{}IP-Address\gt{}]
148 \index[console]{FDAddress }
149 This record is optional, and if it is specified, it will cause the File
150 daemon server (for Director connections) to bind to the specified {\bf
151 IP-Address}, which is either a domain name or an IP address specified as a
152 dotted quadruple. If this record is not specified, the File daemon will bind
153 to any available address (the default).
155 \item [SDConnectTimeout = \lt{}time-interval\gt{}]
156 \index[console]{SDConnectTimeout }
157 This record defines an interval of time that the File daemon will try to
158 connect to the Storage daemon. The default is 30 minutes. If no connection
159 is made in the specified time interval, the File daemon cancels the Job.
161 \item [Maximum Network Buffer Size = \lt{}bytes\gt{} ]
162 \index[console]{Maximum Network Buffer Size }
163 where \lt{}bytes\gt{} specifies the initial network buffer size to use with
164 the File daemon. This size will be adjusted down if it is too large until it
165 is accepted by the OS. Please use care in setting this value since if it is
166 too large, it will be trimmed by 512 bytes until the OS is happy, which may
167 require a large number of system calls. The default value is 32,768 bytes.
170 The following is an example of a valid Client resource definition:
174 Client { # this is me
176 WorkingDirectory = $HOME/bacula/bin/working
177 Pid Directory = $HOME/bacula/bin/working
182 \subsection*{The Director Resource}
183 \label{DirectorResource}
184 \index[general]{Director Resource }
185 \index[general]{Resource!Director }
186 \addcontentsline{toc}{subsection}{Director Resource}
188 The Director resource defines the name and password of the Directors that are
189 permitted to contact this Client.
194 \index[fd]{Director }
195 Start of the Director records. There may be any number of Director resources
196 in the Client configuration file. Each one specifies a Director that is
197 allowed to connect to this Client.
199 \item [Name = \lt{}name\gt{}]
201 The name of the Director that may contact this Client. This name must be the
202 same as the name specified on the Director resource in the Director's
203 configuration file. This record is required.
205 \item [Password = \lt{}password\gt{}]
206 \index[fd]{Password }
207 Specifies the password that must be supplied for a Director to be authorized.
208 This password must be the same as the password specified in the Client
209 resource in the Director's configuration file. This record is required.
211 \item [Monitor = \lt{}yes|no\gt{}]
213 If Monitor is set to {\bf no} (default), this director will have full access
214 to this Client. If Monitor is set to {\bf yes}, this director will only be
215 able to fetch the current status of this Client.
217 Please note that if this director is being used by a Monitor, we highly
218 recommend to set this directive to {\bf yes} to avoid serious security
222 Thus multiple Directors may be authorized to use this Client's services. Each
223 Director will have a different name, and normally a different password as
226 The following is an example of a valid Director resource definition:
231 # List Directors who are permitted to contact the File daemon
235 Password = very_good # password HeadMan must supply
239 Password = not_as_good
245 \subsection*{The Message Resource}
246 \label{MessagesResource}
247 \index[general]{Message Resource }
248 \index[general]{Resource!Message }
249 \addcontentsline{toc}{subsection}{Message Resource}
252 \ilink{Messages Resource}{_ChapterStart15} Chapter of this
253 manual for the details of the Messages Resource.
255 There must be at least one Message resource in the Client configuration file.
257 \subsection*{Example Client Configuration File}
258 \label{SampleClientConfiguration}
259 \index[general]{Example Client Configuration File }
260 \index[general]{File!Example Client Configuration }
261 \addcontentsline{toc}{subsection}{Example Client Configuration File}
263 An example File Daemon configuration file might be the following:
268 # Default Bacula File Daemon Configuration file
270 # For Bacula release 1.35.2 (16 August 2004) -- gentoo 1.4.16
272 # There is not much to change here except perhaps to
273 # set the Director's name and File daemon's name
274 # to something more appropriate for your site.
277 # List Directors who are permitted to contact this File daemon
281 Password = "/LqPRkX++saVyQE7w7mmiFg/qxYc1kufww6FEyY/47jU"
284 # Restricted Director, used by tray-monitor to get the
285 # status of the file daemon
289 Password = "FYpq4yyI1y562EMS35bA0J0QC0M2L3t5cZObxT3XQxgxppTn"
293 # "Global" File daemon configuration specifications
295 FileDaemon { # this is me
297 WorkingDirectory = $HOME/bacula/bin/working
298 Pid Directory = $HOME/bacula/bin/working
300 # Send all messages except skipped files back to Director
303 director = rufus-dir = all, !skipped