Setting Up File Daemon

Community

On the Client machine, you need to edit the bacula-fd.conf file. On GNU/Linux and Unix it is in /opt/bacula/etc/bacula-fd.conf by default. On Windows, the file is in C:\Program Files\Bacula\.

In this file, you need to configure the communication with the Director as well as the Message resource and the File Daemon options:

Director {
  Name = bacula-dir             # Name of your Director
  Password = "4m4z1ngP4ssw0rd"  # Password set for the Client resource
}
[...]
FileDaemon {
  Name = new-client-fd                      # Client resource name
  FDport = 9102                             # Port used for the File Daemon service
  WorkingDirectory = /opt/bacula/working    # Working Directory location
  Pid Directory = /opt/bacula/working       # Pid Directory location
  Maximum Concurrent Jobs = 2               # Number of Maximum Concurrent Jobs
  Plugin Directory = /opt/bacula/plugins    # Plugin Directory location
}
[...]

Don’t forget to edit the Message resource:

Messages {
  Name = Standard
  director = bacula-dir = all, !skipped, !restore
}

Test your modifications with the following command:

# /opt/bacula/bin/bacula-fd-t-u bacula-g bacula

On Windows:

C:\Program Files\Bacula\bacula-fd.exe-t-c C:\Program Files\Bacula\bacula-fd.conf

If no errors are reported, restart the File Daemon service:

On Linux:

#service bacula-fd restart

or

#systemctl restart bacula-fd

On Windows:

Use the Configuration Panel’s Services application

or

C:\ net start bacula-fd

Go back to: Configuring New Client (File Daemon).