Client resource

A Client resource describes a File Daemon the Director backs up: where to reach it, how to authenticate, and limits and quotas for its jobs.

Examples

A typical Linux client

Client {
  Name = web-fd
  Address = web.example.com
  Password = "client-secret"
  Maximum Concurrent Jobs = 2
}

A client behind NAT that connects to the Director

Client {
  Name = laptop-fd
  Address = laptop.example.com
  Password = "laptop-secret"
  Connection From Director To Client = no
  Connection From Client To Director = yes
}

Directives

DirectiveTypeDefaultSummary
NamenamerequiredName of the client as jobs, the catalog and the job logs know it.
DescriptionstringFree text describing the client.
ProtocolenumNativeProtocol to talk to the client: Native (the Bareos File Daemon) or one of the NDMP versions for NAS filers.
Auth TypeenumNoneAuthentication for NDMP clients: None, Clear or MD5.
AddressstringrequiredHost name or IP address of the File Daemon.
Lan AddressstringAddress used instead of Address when the Storage Daemon connects to the File Daemon in passive mode, for setups where storage and client share a LAN that the Director does not see.
Portpositive integer9102TCP port of the File Daemon.
UsernamestringUser name for NDMP authentication.
PasswordpasswordrequiredPassword shared with the File Daemon’s Director resource; with TLS-PSK it is also the TLS key.
CatalogresourceCatalog the jobs of this client are stored in, for installations with several catalogs.
Passiveyes|nonoPassive mode: the Storage Daemon connects to the File Daemon instead of the other way round.
Connection From Director To Clientyes|noyesThe Director opens the connection to the File Daemon (the normal case).
Connection From Client To Directoryes|nonoThe File Daemon connects to the Director and keeps the connection open, so a client behind NAT or a firewall can be backed up.
Enabledyes|noyesA disabled client is not backed up by scheduled jobs; enable client and disable client change it at run time.
Hard Quotasize0Upper limit for the data of this client; a backup that would go beyond it fails. 0 means no limit.
Soft Quotasize0Soft limit for the data of this client: beyond it a warning is written, and after the Soft Quota Grace Period jobs fail.
Soft Quota Grace Periodtime0How long the soft quota may be exceeded before jobs fail.
Strict Quotasyes|nonoWhen the soft quota grace period has run out: yes makes the soft quota a hard limit; no lets jobs run up to the hard quota.
Quota Include Failed Jobsyes|noyesCount the data of failed jobs into the quota.
File Retentiontime5184000 (2 months)deprecatedDeprecated in Bareos 25: how long file records of this client’s jobs are kept.
Job Retentiontime15552000 (6 months)deprecatedDeprecated in Bareos 25: how long job records of this client are kept.
Heartbeat Intervaltime0Interval of keep-alive packets to the File Daemon. 0 switches it off.
Auto Pruneyes|nonodeprecatedDeprecated in Bareos 25: prune this client’s jobs and files after each job.
Maximum Concurrent Jobspositive integer1How many jobs may run on this client at the same time; further jobs wait.
Maximum Bandwidth Per JobspeedLimits the bandwidth of each job of this client.
NDMP Log Levelpositive integer4Detail of NDMP messages of this client, 0 to 9.
NDMP Block Sizesize64512Block size of NDMP backups.
NDMP Use LMDByes|noyesKeep the NDMP file history in an LMDB database during the job instead of in memory, for filers with many files.
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.

Name

Key: name · Type: name · Required

Name of the client as jobs, the catalog and the job logs know it. Renaming it starts a new history in the catalog, since jobs are stored by client.

Client {
  Name = "web-fd"
}

In the console:

configure add client name=web-fd address=web.example.com password=client-secret

Description

Key: description · Type: string

Free text describing the client.

Client {
  Name = web-fd
  Description = "Web server"
}

In the console:

configure update client=web-fd description="Web server"

Protocol

Key: protocol · Type: enum · Default: Native · Values: Native, NDMPv2, NDMPv3, NDMPv4

Protocol to talk to the client: Native (the Bareos File Daemon) or one of the NDMP versions for NAS filers.

Client {
  Name = web-fd
  Protocol = Native
}

In the console:

configure update client=web-fd protocol=Native

Auth Type

Key: authtype · Type: enum · Default: None · Values: None, Clear, MD5

Authentication for NDMP clients: None, Clear or MD5. Native clients ignore it.

Client {
  Name = web-fd
  Auth Type = MD5
}

In the console:

configure update client=web-fd authtype=MD5

Address

Key: address · Type: string · Aliases: FD Address · Required

Host name or IP address of the File Daemon. Required, since the Director connects to it (unless Connection From Client To Director is used).

Client {
  Name = web-fd
  Address = "web.example.com"
}

In the console:

configure update client=web-fd address=web.example.com

Lan Address

Key: lanaddress · Type: string

Address used instead of Address when the Storage Daemon connects to the File Daemon in passive mode, for setups where storage and client share a LAN that the Director does not see.

Client {
  Name = web-fd
  Lan Address = "10.0.0.21"
}

In the console:

configure update client=web-fd lanaddress=10.0.0.21

Port

Key: port · Type: positive integer · Default: 9102 · Aliases: FD Port

TCP port of the File Daemon.

Client {
  Name = web-fd
  Port = 9102
}

In the console:

configure update client=web-fd port=9102

Username

Key: username · Type: string

User name for NDMP authentication.

Client {
  Name = web-fd
  Username = "ndmp"
}

In the console:

configure update client=web-fd username=ndmp

Password

Key: password · Type: password · Aliases: FD Password · Required

Password shared with the File Daemon’s Director resource; with TLS-PSK it is also the TLS key. Both sides must have the same value.

Client {
  Name = web-fd
  Password = "client-secret"
}

In the console:

configure update client=web-fd password=client-secret

Catalog

Key: catalog · Type: resource

Catalog the jobs of this client are stored in, for installations with several catalogs.

Client {
  Name = web-fd
  Catalog = "MyCatalog"
}

In the console:

configure update client=web-fd catalog=MyCatalog

Passive

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

Passive mode: the Storage Daemon connects to the File Daemon instead of the other way round. Useful when the client may not open connections, for example behind a firewall.

Client {
  Name = web-fd
  Passive = yes
}

In the console:

configure update client=web-fd passive=yes

Connection From Director To Client

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

The Director opens the connection to the File Daemon (the normal case).

Client {
  Name = web-fd
  Connection From Director To Client = yes
}

In the console:

configure update client=web-fd connectionfromdirectortoclient=yes

Connection From Client To Director

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

The File Daemon connects to the Director and keeps the connection open, so a client behind NAT or a firewall can be backed up. Needs the matching setting in the File Daemon. With Run On Incoming Connect Interval a job can start when the client connects.

Client {
  Name = web-fd
  Connection From Client To Director = yes
}

In the console:

configure update client=web-fd connectionfromclienttodirector=yes

Enabled

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

A disabled client is not backed up by scheduled jobs; enable client and disable client change it at run time.

Client {
  Name = web-fd
  Enabled = yes
}

In the console:

configure update client=web-fd enabled=yes

Hard Quota

Key: hardquota · Type: size · Default: 0

Upper limit for the data of this client; a backup that would go beyond it fails. 0 means no limit. Sizes take the suffixes k, m, g, t (powers of 1024) or kb, mb, gb, tb (powers of 1000).

Client {
  Name = web-fd
  Hard Quota = 500 g
}

In the console:

configure update client=web-fd hardquota="500 g"

Soft Quota

Key: softquota · Type: size · Default: 0

Soft limit for the data of this client: beyond it a warning is written, and after the Soft Quota Grace Period jobs fail. Sizes take the suffixes k, m, g, t (powers of 1024) or kb, mb, gb, tb (powers of 1000).

Client {
  Name = web-fd
  Soft Quota = 400 g
}

In the console:

configure update client=web-fd softquota="400 g"

Soft Quota Grace Period

Key: softquotagraceperiod · Type: time · Default: 0

How long the soft quota may be exceeded before jobs fail. 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.

Client {
  Name = web-fd
  Soft Quota Grace Period = 7 days
}

In the console:

configure update client=web-fd softquotagraceperiod="7 days"

Strict Quotas

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

When the soft quota grace period has run out: yes makes the soft quota a hard limit; no lets jobs run up to the hard quota.

Client {
  Name = web-fd
  Strict Quotas = no
}

In the console:

configure update client=web-fd strictquotas=no

Quota Include Failed Jobs

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

Count the data of failed jobs into the quota.

Client {
  Name = web-fd
  Quota Include Failed Jobs = yes
}

In the console:

configure update client=web-fd quotaincludefailedjobs=yes

File Retention

Key: fileretention · Type: time · Default: 5184000 (2 months) · Deprecated

Deprecated in Bareos 25: how long file records of this client’s jobs are kept. Set retention in the Pool instead. 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.

Client {
  Name = web-fd
  File Retention = 60 days
}

Job Retention

Key: jobretention · Type: time · Default: 15552000 (6 months) · Deprecated

Deprecated in Bareos 25: how long job records of this client are kept. Set retention in the Pool instead. 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.

Client {
  Name = web-fd
  Job Retention = 6 months
}

Heartbeat Interval

Key: heartbeatinterval · Type: time · Default: 0

Interval of keep-alive packets to the File Daemon. 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.

Client {
  Name = web-fd
  Heartbeat Interval = 60
}

In the console:

configure update client=web-fd heartbeatinterval=60

Auto Prune

Key: autoprune · Type: yes|no · Default: no · Values: yes, no · Deprecated

Deprecated in Bareos 25: prune this client’s jobs and files after each job.

Client {
  Name = web-fd
  Auto Prune = no
}

Maximum Concurrent Jobs

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

How many jobs may run on this client at the same time; further jobs wait. Raise it when several jobs (for example per file system) back up the same host.

Client {
  Name = web-fd
  Maximum Concurrent Jobs = 2
}

In the console:

configure update client=web-fd maximumconcurrentjobs=2

Maximum Bandwidth Per Job

Key: maximumbandwidthperjob · Type: speed

Limits the bandwidth of each job of this client. Speeds take the suffixes k/s, m/s (powers of 1024) or kb/s, mb/s (powers of 1000); a plain number means bytes per second.

Client {
  Name = web-fd
  Maximum Bandwidth Per Job = 20 m/s
}

In the console:

configure update client=web-fd maximumbandwidthperjob="20 m/s"

NDMP Log Level

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

Detail of NDMP messages of this client, 0 to 9.

Client {
  Name = web-fd
  NDMP Log Level = 4
}

In the console:

configure update client=web-fd ndmploglevel=4

NDMP Block Size

Key: ndmpblocksize · Type: size · Default: 64512

Block size of NDMP backups. Sizes take the suffixes k, m, g, t (powers of 1024) or kb, mb, gb, tb (powers of 1000).

Client {
  Name = web-fd
  NDMP Block Size = 64512
}

In the console:

configure update client=web-fd ndmpblocksize=64512

NDMP Use LMDB

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

Keep the NDMP file history in an LMDB database during the job instead of in memory, for filers with many files.

Client {
  Name = web-fd
  NDMP Use LMDB = yes
}

In the console:

configure update client=web-fd ndmpuselmdb=yes

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.

Client {
  Name = web-fd
  TLS Authenticate = no
}

In the console:

configure update client=web-fd tlsauthenticate=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.

Client {
  Name = web-fd
  TLS Enable = yes
}

In the console:

configure update client=web-fd tlsenable=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.

Client {
  Name = web-fd
  TLS Require = yes
}

In the console:

configure update client=web-fd tlsrequire=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.

Client {
  Name = web-fd
  TLS Cipher List = "PSK-AES256-GCM-SHA384:PSK-AES128-GCM-SHA256"
}

In the console:

configure update client=web-fd tlscipherlist=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.

Client {
  Name = web-fd
  TLS Cipher Suites = "TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256"
}

In the console:

configure update client=web-fd tlsciphersuites=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.

Client {
  Name = web-fd
  TLS DH File = "/etc/bareos/tls/dh2048.pem"
}

In the console:

configure update client=web-fd tlsdhfile=/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.

Client {
  Name = web-fd
  TLS Protocol = "-ALL, +TLSv1.2, +TLSv1.3"
}

In the console:

configure update client=web-fd tlsprotocol="-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.

Client {
  Name = web-fd
  TLS Verify Peer = yes
}

In the console:

configure update client=web-fd tlsverifypeer=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).

Client {
  Name = web-fd
  TLS Ca Certificate File = "/etc/bareos/tls/ca.pem"
}

In the console:

configure update client=web-fd tlscacertificatefile=/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.

Client {
  Name = web-fd
  TLS Ca Certificate Dir = "/etc/ssl/certs"
}

In the console:

configure update client=web-fd tlscacertificatedir=/etc/ssl/certs

TLS Certificate Revocation List

Key: tlscertificaterevocationlist · Type: path

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

Client {
  Name = web-fd
  TLS Certificate Revocation List = "/etc/bareos/tls/crl.pem"
}

In the console:

configure update client=web-fd tlscertificaterevocationlist=/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.

Client {
  Name = web-fd
  TLS Certificate = "/etc/bareos/tls/bareos-dir.pem"
}

In the console:

configure update client=web-fd tlscertificate=/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.

Client {
  Name = web-fd
  TLS Key = "/etc/bareos/tls/bareos-dir.key"
}

In the console:

configure update client=web-fd tlskey=/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.

Client {
  Name = web-fd
  TLS Allowed CN = "client1.example.com"
}

In the console:

configure update client=web-fd tlsallowedcn=client1.example.com

See also: configuration reference, configure, show