Director resource

The Director resource configures the Director daemon itself: its name, password, listen addresses, working directories and global limits. There is exactly one per Director.

Examples

A Director with gRPC on the default port

Director {
  Name = bareos-dir
  Password = "secret"
  Messages = Daemon
  Working Directory = /var/lib/bareos
  Maximum Concurrent Jobs = 20
  Query File = "/usr/lib/bareos/scripts/query.sql"
}

The Onesimus Director listens for gRPC on 9101 + 1000 = 10101 and generates its gRPC certificate in the working directory on first start.

Directives

DirectiveTypeDefaultSummary
NamenamerequiredName of the Director.
DescriptionstringFree text shown by status director.
MessagesresourceMessages resource for messages that do not belong to a job, such as start, reload and connection errors.
Portport9101TCP port the Director listens on for consoles and daemons.
AddressaddressIP address or host name the Director listens on.
Addressesaddress blockSeveral listen addresses in one block, each with ipv4 or ipv6, addr and port.
Source Addressaddress0Source address for connections the Director opens to File and Storage Daemons, useful on hosts with several interfaces.
Query Filepath/usr/lib/bareos/scripts/query.sqlSQL file with the predefined queries of the query command.
Working Directorypath/var/lib/bareosDirectory for state files, bootstrap files and the like; it must be writable by the Director.
Plugin DirectorypathDirectory the Director loads its plugins from (Plugin Names selects which).
Plugin Namesstring listDirector plugins to load from Plugin Directory; without it all are loaded.
Scripts Directorypath/usr/lib/bareos/scriptsDirectory of the helper scripts of Bareos (for example the catalog backup scripts).
Subscriptionspositive integer0Number of clients covered by a subscription; status subscriptions compares it with the clients in use. 0 means not checked.
Maximum Concurrent Jobspositive integer1How many jobs the Director runs at the same time.
Maximum Console Connectionspositive integer20How many consoles may be connected at the same time; further connections are refused.
PasswordpasswordrequiredPassword that consoles without a Console resource of their own (the default console of bconsole) use to log in.
FD Connect Timeouttime180 (3 minutes)How long the Director keeps trying to reach a File Daemon before the job fails.
SD Connect Timeouttime1800 (30 minutes)How long the Director keeps trying to reach a Storage Daemon before the job fails.
Heartbeat Intervaltime0Interval of keep-alive packets on idle connections, so that firewalls do not drop long-running jobs. 0 switches it off.
Statistics Retentiontime160704000 (62 months)deprecatedDeprecated: how long job statistics are kept in the catalog.
Statistics Collect Intervalpositive integer0deprecatedDeprecated: interval in seconds of the statistics collection; 0 switches it off.
Ver IdstringFree text added to the version line of status director, for example a build or site tag.
Key Encryption KeypasswordKey that wraps the keys of encrypted tapes (LTO hardware encryption) before they are stored in the catalog.
NDMP Snoopingyes|noLog the NDMP protocol traffic for debugging.
NDMP Log Levelpositive integer4Detail of NDMP messages in the log, 0 to 9.
NDMP Namelist Fhinfo Set Zero For Invalid Uquadyes|nonoWork-around for NDMP filers that reject invalid values in the fh_info field of a restore name list: send 0 instead.
Absolute Job Timeoutpositive integerHard limit for the run time of any job, in seconds; 0 or unset means no limit.
Auditingyes|nonoWrite every console command to the audit log (message type audit).
Audit Eventsstring listConsole commands that are audited when Auditing is on; without it all are.
Secure Erase CommandstringCommand used to erase files securely (for example bootstrap files) instead of a plain delete.
Log Timestamp Formatstring%d-%b %H:%Mstrftime format of the time stamps in job logs.
Enable kTLSyes|nonoLet the kernel do the TLS encryption (kTLS) where the system supports it.
TLS Authenticateyes|nonoUse TLS only to authenticate the peer and switch back to an unencrypted connection afterwards.
TLS Enableyes|noyesEnable TLS for this connection.
TLS Requireyes|noyesRefuse connections that do not use TLS.
TLS Cipher ListstringOpenSSL cipher list for TLS 1.2 and older, colon separated.
TLS Cipher SuitesstringOpenSSL cipher suites for TLS 1.3, colon separated.
TLS DH FilepathPEM file with Diffie-Hellman parameters for the DH key exchange of TLS 1.2.
TLS ProtocolstringRestricts the TLS protocol versions in OpenSSL syntax, for example to forbid old versions.
TLS Verify Peeryes|nonoWith certificate based TLS: check the peer’s certificate against the CA and, for a server, against TLS Allowed CN.
TLS Ca Certificate FilepathPEM file with the CA certificates used to verify the peer’s certificate.
TLS Ca Certificate DirpathDirectory of hashed CA certificates (as made by openssl rehash), an alternative to TLS CA Certificate File.
TLS Certificate Revocation ListpathPEM file with a certificate revocation list; certificates on it are refused.
TLS CertificatepathPEM file with the own certificate for certificate based TLS.
TLS KeypathPEM file with the private key of TLS Certificate.
TLS Allowed CNstring listCommon names a peer certificate may carry; others are refused when TLS Verify Peer is on.
Grpc Portpositive integerOnesimusOnesimus extension: TCP port of the gRPC interface of the Onesimus Director.
Grpc Tls CertificatepathOnesimusOnesimus extension: PEM certificate of the gRPC interface.
Grpc Tls KeypathOnesimusOnesimus extension: private key of Grpc Tls Certificate; both must be given together.
Mdns Advertiseyes|noyesOnesimusOnesimus extension: announce the Director in the local network by mDNS (name, ports and gRPC fingerprint), so that the connection wizard of the GUI can find it.

Name

Key: name · Type: name · Required

Name of the Director. Consoles, File Daemons and Storage Daemons refer to it in their own Director resources, so a change must be made there as well.

Director {
  Name = "bareos-dir"
}

Description

Key: description · Type: string

Free text shown by status director.

Director {
  Name = bareos-dir
  Description = "Main backup server"
}

Messages

Key: messages · Type: resource

Messages resource for messages that do not belong to a job, such as start, reload and connection errors. Without it, such messages only reach the log of the daemon.

Director {
  Name = bareos-dir
  Messages = "Daemon"
}

Port

Key: port · Type: port · Default: 9101 · Aliases: Dir Port

TCP port the Director listens on for consoles and daemons. The Onesimus Director listens for gRPC on this port plus 1000 unless Grpc Port is set.

Director {
  Name = bareos-dir
  Port = 9101
}

Address

Key: address · Type: address · Aliases: Dir Address

IP address or host name the Director listens on. There is no default: without Address or Addresses the Director listens on all addresses. Use Addresses for several addresses or IPv6 and IPv4 at once.

Director {
  Name = bareos-dir
  Address = "192.0.2.10"
}

Addresses

Key: addresses · Type: address block · Aliases: Dir Addresses

Several listen addresses in one block, each with ipv4 or ipv6, addr and port. It replaces Address and Port. There is no default: without Address or Addresses the Director listens on all addresses.

Director {
  Name = bareos-dir
  Addresses = {
    ipv4 = { addr = 0.0.0.0; port = 9101 }
    ipv6 = { addr = ::; port = 9101 }
  }
}

Source Address

Key: sourceaddress · Type: address · Default: 0 · Aliases: Dir Source Address

Source address for connections the Director opens to File and Storage Daemons, useful on hosts with several interfaces. The default 0 means any local address.

Director {
  Name = bareos-dir
  Source Address = "192.0.2.10"
}

Query File

Key: queryfile · Type: path · Default: /usr/lib/bareos/scripts/query.sql

SQL file with the predefined queries of the query command.

Director {
  Name = bareos-dir
  Query File = "/usr/lib/bareos/scripts/query.sql"
}

Working Directory

Key: workingdirectory · Type: path · Default: /var/lib/bareos

Directory for state files, bootstrap files and the like; it must be writable by the Director. The Onesimus Director also keeps its generated gRPC certificate here (onesimus-grpc.crt and .key) when Grpc Tls Certificate is not set.

Director {
  Name = bareos-dir
  Working Directory = "/var/lib/bareos"
}

Plugin Directory

Key: plugindirectory · Type: path

Directory the Director loads its plugins from (Plugin Names selects which).

Director {
  Name = bareos-dir
  Plugin Directory = "/usr/lib/bareos/plugins"
}

Plugin Names

Key: pluginnames · Type: string list

Director plugins to load from Plugin Directory; without it all are loaded.

Director {
  Name = bareos-dir
  Plugin Names = "python3"
}

Scripts Directory

Key: scriptsdirectory · Type: path · Default: /usr/lib/bareos/scripts

Directory of the helper scripts of Bareos (for example the catalog backup scripts).

Director {
  Name = bareos-dir
  Scripts Directory = "/usr/lib/bareos/scripts"
}

Subscriptions

Key: subscriptions · Type: positive integer · Default: 0

Number of clients covered by a subscription; status subscriptions compares it with the clients in use. 0 means not checked. It does not limit anything.

Director {
  Name = bareos-dir
  Subscriptions = 50
}

Maximum Concurrent Jobs

Key: maximumconcurrentjobs · Type: positive integer · Default: 1

How many jobs the Director runs at the same time. Further jobs wait in the queue (status “is waiting on max total jobs”). Clients, storages and jobs have their own limits; the smallest one decides. The schedule view of the Onesimus GUI uses these limits to predict waits.

Director {
  Name = bareos-dir
  Maximum Concurrent Jobs = 20
}

Maximum Console Connections

Key: maximumconsoleconnections · Type: positive integer · Default: 20

How many consoles may be connected at the same time; further connections are refused.

Director {
  Name = bareos-dir
  Maximum Console Connections = 20
}

Password

Key: password · Type: password · Required

Password that consoles without a Console resource of their own (the default console of bconsole) use to log in. Anyone with it has full access, so keep it secret and give users named consoles with ACLs instead. “[md5]” followed by a hash is accepted.

Director {
  Name = bareos-dir
  Password = "secret"
}

FD Connect Timeout

Key: fdconnecttimeout · Type: time · Default: 180 (3 minutes)

How long the Director keeps trying to reach a File Daemon before the job fails. Times are written as a number with a unit: seconds, minutes, hours, days, weeks, months, quarters or years (abbreviations such as 30d, 12h or 1y work too); several parts add up (“1 month 15 days”), and a plain number means seconds.

Director {
  Name = bareos-dir
  FD Connect Timeout = 3 minutes
}

SD Connect Timeout

Key: sdconnecttimeout · Type: time · Default: 1800 (30 minutes)

How long the Director keeps trying to reach a Storage Daemon before the job fails. Times are written as a number with a unit: seconds, minutes, hours, days, weeks, months, quarters or years (abbreviations such as 30d, 12h or 1y work too); several parts add up (“1 month 15 days”), and a plain number means seconds.

Director {
  Name = bareos-dir
  SD Connect Timeout = 30 minutes
}

Heartbeat Interval

Key: heartbeatinterval · Type: time · Default: 0

Interval of keep-alive packets on idle connections, so that firewalls do not drop long-running jobs. 0 switches it off. Times are written as a number with a unit: seconds, minutes, hours, days, weeks, months, quarters or years (abbreviations such as 30d, 12h or 1y work too); several parts add up (“1 month 15 days”), and a plain number means seconds.

Director {
  Name = bareos-dir
  Heartbeat Interval = 60
}

Statistics Retention

Key: statisticsretention · Type: time · Default: 160704000 (62 months) · Deprecated

Deprecated: how long job statistics are kept in the catalog. Times are written as a number with a unit: seconds, minutes, hours, days, weeks, months, quarters or years (abbreviations such as 30d, 12h or 1y work too); several parts add up (“1 month 15 days”), and a plain number means seconds.

Director {
  Name = bareos-dir
  Statistics Retention = 5 years
}

Statistics Collect Interval

Key: statisticscollectinterval · Type: positive integer · Default: 0 · Deprecated

Deprecated: interval in seconds of the statistics collection; 0 switches it off.

Director {
  Name = bareos-dir
  Statistics Collect Interval = 0
}

Ver Id

Key: verid · Type: string

Free text added to the version line of status director, for example a build or site tag.

Director {
  Name = bareos-dir
  Ver Id = "site A"
}

Key Encryption Key

Key: keyencryptionkey · Type: password

Key that wraps the keys of encrypted tapes (LTO hardware encryption) before they are stored in the catalog. Losing it makes such volumes unreadable. The Onesimus Director wraps with AES key wrap (RFC 3394).

Director {
  Name = bareos-dir
  Key Encryption Key = "long-random-string"
}

NDMP Snooping

Key: ndmpsnooping · Type: yes|no · Values: yes, no

Log the NDMP protocol traffic for debugging.

Director {
  Name = bareos-dir
  NDMP Snooping = no
}

NDMP Log Level

Key: ndmploglevel · Type: positive integer · Default: 4

Detail of NDMP messages in the log, 0 to 9.

Director {
  Name = bareos-dir
  NDMP Log Level = 4
}

NDMP Namelist Fhinfo Set Zero For Invalid Uquad

Key: ndmpnamelistfhinfosetzeroforinvaliduquad · Type: yes|no · Default: no · Values: yes, no

Work-around for NDMP filers that reject invalid values in the fh_info field of a restore name list: send 0 instead.

Director {
  Name = bareos-dir
  NDMP Namelist Fhinfo Set Zero For Invalid Uquad = no
}

Absolute Job Timeout

Key: absolutejobtimeout · Type: positive integer

Hard limit for the run time of any job, in seconds; 0 or unset means no limit.

Director {
  Name = bareos-dir
  Absolute Job Timeout = 0
}

Auditing

Key: auditing · Type: yes|no · Default: no · Values: yes, no

Write every console command to the audit log (message type audit).

Director {
  Name = bareos-dir
  Auditing = yes
}

Audit Events

Key: auditevents · Type: string list

Console commands that are audited when Auditing is on; without it all are.

Director {
  Name = bareos-dir
  Audit Events = "label, purge, delete, configure"
}

Secure Erase Command

Key: secureerasecommand · Type: string

Command used to erase files securely (for example bootstrap files) instead of a plain delete.

Director {
  Name = bareos-dir
  Secure Erase Command = "/usr/bin/shred -u"
}

Log Timestamp Format

Key: logtimestampformat · Type: string · Default: %d-%b %H:%M

strftime format of the time stamps in job logs.

Director {
  Name = bareos-dir
  Log Timestamp Format = "%Y-%m-%d %H:%M:%S"
}

Enable kTLS

Key: enablektls · Type: yes|no · Default: no · Values: yes, no

Let the kernel do the TLS encryption (kTLS) where the system supports it.

Director {
  Name = bareos-dir
  Enable kTLS = no
}

TLS Authenticate

Key: tlsauthenticate · Type: yes|no · Default: no · Values: yes, no

Use TLS only to authenticate the peer and switch back to an unencrypted connection afterwards. The data then travels in clear text, so this is meant for networks that are protected otherwise. Bareos’ default TLS-PSK setup does not need it.

Director {
  Name = bareos-dir
  TLS Authenticate = no
}

TLS Enable

Key: tlsenable · Type: yes|no · Default: yes · Values: yes, no

Enable TLS for this connection. Since Bareos 18.2 TLS is on by default and uses TLS-PSK with the password of the resource, so no certificates are needed; set it to no only for peers that cannot speak TLS.

Director {
  Name = bareos-dir
  TLS Enable = yes
}

TLS Require

Key: tlsrequire · Type: yes|no · Default: yes · Values: yes, no

Refuse connections that do not use TLS. With the default (yes) a peer without TLS cannot connect; set it to no only during a migration from very old clients.

Director {
  Name = bareos-dir
  TLS Require = yes
}

TLS Cipher List

Key: tlscipherlist · Type: string

OpenSSL cipher list for TLS 1.2 and older, colon separated. Leave it empty to use the OpenSSL defaults; restrict it only when a security policy demands specific ciphers.

Director {
  Name = bareos-dir
  TLS Cipher List = "PSK-AES256-GCM-SHA384:PSK-AES128-GCM-SHA256"
}

TLS Cipher Suites

Key: tlsciphersuites · Type: string

OpenSSL cipher suites for TLS 1.3, colon separated. Empty means the OpenSSL defaults.

Director {
  Name = bareos-dir
  TLS Cipher Suites = "TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256"
}

TLS DH File

Key: tlsdhfile · Type: path

PEM file with Diffie-Hellman parameters for the DH key exchange of TLS 1.2. Without it, ephemeral DH ciphers are not offered; ECDHE and PSK ciphers do not need it.

Director {
  Name = bareos-dir
  TLS DH File = "/etc/bareos/tls/dh2048.pem"
}

TLS Protocol

Key: tlsprotocol · Type: string

Restricts the TLS protocol versions in OpenSSL syntax, for example to forbid old versions. Empty means the OpenSSL default.

Director {
  Name = bareos-dir
  TLS Protocol = "-ALL, +TLSv1.2, +TLSv1.3"
}

TLS Verify Peer

Key: tlsverifypeer · Type: yes|no · Default: no · Values: yes, no

With certificate based TLS: check the peer’s certificate against the CA and, for a server, against TLS Allowed CN. It has no effect with TLS-PSK.

Director {
  Name = bareos-dir
  TLS Verify Peer = yes
}

TLS Ca Certificate File

Key: tlscacertificatefile · Type: path

PEM file with the CA certificates used to verify the peer’s certificate. Needed for certificate based TLS when TLS Verify Peer is on (or use TLS CA Certificate Dir).

Director {
  Name = bareos-dir
  TLS Ca Certificate File = "/etc/bareos/tls/ca.pem"
}

TLS Ca Certificate Dir

Key: tlscacertificatedir · Type: path

Directory of hashed CA certificates (as made by openssl rehash), an alternative to TLS CA Certificate File.

Director {
  Name = bareos-dir
  TLS Ca Certificate Dir = "/etc/ssl/certs"
}

TLS Certificate Revocation List

Key: tlscertificaterevocationlist · Type: path

PEM file with a certificate revocation list; certificates on it are refused.

Director {
  Name = bareos-dir
  TLS Certificate Revocation List = "/etc/bareos/tls/crl.pem"
}

TLS Certificate

Key: tlscertificate · Type: path

PEM file with the own certificate for certificate based TLS. Goes together with TLS Key.

Director {
  Name = bareos-dir
  TLS Certificate = "/etc/bareos/tls/bareos-dir.pem"
}

TLS Key

Key: tlskey · Type: path

PEM file with the private key of TLS Certificate. Keep it readable for the daemon user only.

Director {
  Name = bareos-dir
  TLS Key = "/etc/bareos/tls/bareos-dir.key"
}

TLS Allowed CN

Key: tlsallowedcn · Type: string list

Common names a peer certificate may carry; others are refused when TLS Verify Peer is on. Repeat the directive for several names.

Director {
  Name = bareos-dir
  TLS Allowed CN = "client1.example.com"
}

Grpc Port

Key: grpcport · Type: positive integer · Onesimus

Onesimus extension: TCP port of the gRPC interface of the Onesimus Director. Without it the Director listens on each BNET listen port plus 1000 (9101 becomes 10101). The Onesimus GUI and oconsole connect here; gRPC is always encrypted with TLS.

Director {
  Name = bareos-dir
  Grpc Port = 10101
}

Grpc Tls Certificate

Key: grpctlscertificate · Type: path · Onesimus

Onesimus extension: PEM certificate of the gRPC interface. Without it (and Grpc Tls Key) the Director uses onesimus-grpc.crt in the Working Directory and generates a self-signed one on first start. Clients pin the certificate by its SHA-256 fingerprint, so replacing it makes them ask again.

Director {
  Name = bareos-dir
  Grpc Tls Certificate = "/etc/bareos/tls/grpc.pem"
}

Grpc Tls Key

Key: grpctlskey · Type: path · Onesimus

Onesimus extension: private key of Grpc Tls Certificate; both must be given together.

Director {
  Name = bareos-dir
  Grpc Tls Key = "/etc/bareos/tls/grpc.key"
}

Mdns Advertise

Key: mdnsadvertise · Type: yes|no · Default: yes · Values: yes, no · Onesimus

Onesimus extension: announce the Director in the local network by mDNS (name, ports and gRPC fingerprint), so that the connection wizard of the GUI can find it. A Director that listens on loopback only is never announced.

Director {
  Name = bareos-dir
  Mdns Advertise = no
}

See also: configuration reference, configure, show