Next: Storage Daemon Configuration
Up: Bacula User's Guide
Previous: Configuring the Director
Contents
Index
Subsections
Client/File daemon Configuration
The Client (or File Daemon) Configuration is one of the simpler ones to
specify. Generally, other than changing the Client name so that error messages
are easily identified, you will not need to modify the default Client
configuration file.
For a general discussion of configuration file and resources including the
data types recognized by Bacula, please see the
Configuration chapter of this manual. The
following Client Resource definitions must be defined:
- Client - to define what Clients are to
be backed up.
- Director - to define the Director's
name and its access password.
- Messages - to define where error and
information messages are to be sent.
The Client Resource
The Client Resource (or FileDaemon) resource defines the name of the Client
(as used by the Director) as well as the port on which the Client listens for
Director connections.
- Client (or FileDaemon)
-
Start of the Client records. There must be one and only one Client resource
in the configuration file, since it defines the properties of the current
client program.
- Name = <name>
-
The client name that must be used by the Director when connecting. Generally,
it is a good idea to use a name related to the machine so that error messages
can be easily identified if you have multiple Clients. This record is
required.
- Working Directory = <Directory>
-
This directive is mandatory and specifies a directory in which the File
daemon may put its status files. This directory should be used only by Bacula, but may be shared by other Bacula daemons. This record is required
- Pid Directory = <Directory>
-
This directive is mandatory and specifies a directory in which the Director
may put its process Id file files. The process Id file is used to shutdown
Bacula and to prevent multiple copies of Bacula from running simultaneously.
This record is required. Standard shell expansion of the Directory is
done when the configuration file is read so that values such as $HOME
will be properly expanded.
Typically on Linux systems, you will set this to: /var/run. If you are
not installing Bacula in the system directories, you can use the Working
Directory as defined above.
- Heartbeat Interval = <time-interval>
-
This record defines an interval of time. For each heartbeat that the
File daemon receives from the Storage daemon, it will forward it to the
Director. In addition, if no heartbeat has been received from the
Storage daemon and thus forwarded the File daemon will send a heartbeat
signal to the Director and to the Storage daemon to keep the channels
active. The default interval is zero which disables the heartbeat.
This feature is particularly useful if you have a router such as 3Com
that does not follow Internet standards and times out an inactive
connection after a short duration.
- Maximum Concurrent Jobs = <number>
-
where <number> is the maximum number of Jobs that should run
concurrently. The default is set to 2, but you may set it to a larger
number. Each contact from the Director (e.g. status request, job start
request) is considered as a Job, so if you want to be able to do a status request in the console at the same time as a Job is running, you
will need to set this value greater than 1.
- FDAddresses = <IP-address-specification>
-
Specify the ports and addresses on which the Director daemon will listen
for Bacula Console connections. Probably the simplest way to explain is
to show an example:
FDAddresses = { ip = {
addr = 1.2.3.4; port = 1205; }
ipv4 = {
addr = 1.2.3.4; port = http; }
ipv6 = {
addr = 1.2.3.4;
port = 1205;
}
ip = {
addr = 1.2.3.4
port = 1205
}
ip = {
addr = 1.2.3.4
}
ip = {
addr = 201:220:222::2
}
ip = {
addr = bluedot.thun.net
}
}
where ip, ip4, ip6, addr, and port are all keywords. Note, that the address
can be specified as either a dotted quadruple, or IPv6 colon notation, or as
a symbolic name (only in the ip specification). Also, port can be specified
as a number or as the mnemonic value from the /etc/services file. If a port
is not specified, the default will be used. If an ip section is specified,
the resolution can be made either by IPv4 or IPv6. If ip4 is specified, then
only IPv4 resolutions will be permitted, and likewise with ip6.
- FDPort = <port-number>
-
This specifies the port number on which the Client listens for Director
connections. It must agree with the FDPort specified in the Client resource
of the Director's configuration file. The default is 9102.
- FDAddress = <IP-Address>
-
This record is optional, and if it is specified, it will cause the File
daemon server (for Director connections) to bind to the specified IP-Address, which is either a domain name or an IP address specified as a
dotted quadruple. If this record is not specified, the File daemon will bind
to any available address (the default).
- SDConnectTimeout = <time-interval>
-
This record defines an interval of time that the File daemon will try to
connect to the Storage daemon. The default is 30 minutes. If no connection
is made in the specified time interval, the File daemon cancels the Job.
- Maximum Network Buffer Size = <bytes>
-
where <bytes> specifies the initial network buffer size to use with
the File daemon. This size will be adjusted down if it is too large until it
is accepted by the OS. Please use care in setting this value since if it is
too large, it will be trimmed by 512 bytes until the OS is happy, which may
require a large number of system calls. The default value is 32,768 bytes.
The following is an example of a valid Client resource definition:
Client { # this is me
Name = rufus-fd
WorkingDirectory = $HOME/bacula/bin/working
Pid Directory = $HOME/bacula/bin/working
}
The Director Resource
The Director resource defines the name and password of the Directors that are
permitted to contact this Client.
- Director
-
Start of the Director records. There may be any number of Director resources
in the Client configuration file. Each one specifies a Director that is
allowed to connect to this Client.
- Name = <name>
-
The name of the Director that may contact this Client. This name must be the
same as the name specified on the Director resource in the Director's
configuration file. This record is required.
- Password = <password>
-
Specifies the password that must be supplied for a Director to be authorized.
This password must be the same as the password specified in the Client
resource in the Director's configuration file. This record is required.
- Monitor = <yes|no>
-
If Monitor is set to no (default), this director will have full access
to this Client. If Monitor is set to yes, this director will only be
able to fetch the current status of this Client.
Please note that if this director is being used by a Monitor, we highly
recommend to set this directive to yes to avoid serious security
problems.
Thus multiple Directors may be authorized to use this Client's services. Each
Director will have a different name, and normally a different password as
well.
The following is an example of a valid Director resource definition:
#
# List Directors who are permitted to contact the File daemon
#
Director {
Name = HeadMan
Password = very_good # password HeadMan must supply
}
Director {
Name = Worker
Password = not_as_good
Monitor = Yes
}
The Message Resource
Please see the
Messages Resource Chapter of this
manual for the details of the Messages Resource.
There must be at least one Message resource in the Client configuration file.
Example Client Configuration File
An example File Daemon configuration file might be the following:
#
# Default Bacula File Daemon Configuration file
#
# For Bacula release 1.35.2 (16 August 2004) -- gentoo 1.4.16
#
# There is not much to change here except perhaps to
# set the Director's name and File daemon's name
# to something more appropriate for your site.
#
#
# List Directors who are permitted to contact this File daemon
#
Director {
Name = rufus-dir
Password = "/LqPRkX++saVyQE7w7mmiFg/qxYc1kufww6FEyY/47jU"
}
#
# Restricted Director, used by tray-monitor to get the
# status of the file daemon
#
Director {
Name = rufus-mon
Password = "FYpq4yyI1y562EMS35bA0J0QC0M2L3t5cZObxT3XQxgxppTn"
Monitor = yes
}
#
# "Global" File daemon configuration specifications
#
FileDaemon { # this is me
Name = rufus-fd
WorkingDirectory = $HOME/bacula/bin/working
Pid Directory = $HOME/bacula/bin/working
}
# Send all messages except skipped files back to Director
Messages {
Name = Standard
director = rufus-dir = all, !skipped
}
Next: Storage Daemon Configuration
Up: Bacula User's Guide
Previous: Configuring the Director
Contents
Index
2005-06-01