13.1 server.toml
The server.toml file in the server's data directory holds the settings that are not in the web interface: ports, certificate lifetimes, load limits, report times, ransomware warning thresholds, power management, and the optional OIDC sign-in. This page lists every key of every section with type, default and effect.
Location, structure and rules
Platform | Path |
|---|---|
Windows |
|
Linux |
|
Another data directory can be set with --data-dir or the environment variable PDC_DATA_DIR (see section 13.5 Command line and section 13.4 Environment variables).
On first start the server creates the file with all default values. In this new file
[metrics] require_token = trueis set. An older file without a[metrics]section keeps the defaultfalse:/metricsthen stays open, and the dashboard warns until a token is required.Every key is optional. Missing keys get their default value.
Unknown keys are an error. A typo or a key from another version stops the server from starting with the message "invalid server.toml". The start also fails for values outside the limits below.
The server reads the file at startup. Changes take effect after restarting the service (Windows: service PDCBackupServer, Linux: pdc-server.service).
Scalar keys come before all
[β¦]sections; in TOML everything after a section header belongs to that section.
General keys
These keys are at the top of the file, outside any section.
| Name | Required | Default | Description |
|---|---|---|---|
web_listen | 0.0.0.0:8443 | Address and port (IP:port) of the web interface and the REST API, HTTPS. With "127.0.0.1:8443" it is reachable locally only. The Linux service may open ports below 1024 (such as 443) only with the CAP_NET_BIND_SERVICE capability: create a systemd drop-in with AmbientCapabilities=CAP_NET_BIND_SERVICE and CapabilityBoundingSet=CAP_NET_BIND_SERVICE. Without it the server reports "cannot listen on <address>: Permission denied". | |
agent_listen | 0.0.0.0:8444 | Address and port of the agent endpoint (gRPC with mutual TLS). Agents open the connection to the server themselves. | |
public_names | [] | Extra DNS names or IP addresses that go into the server certificate. Always included: the machine's host name, the server's primary IPv4 address, localhost and 127.0.0.1, plus names added in the web interface. If the IP address changes, a new certificate is issued at the next start; the key that agents pin stays. | |
server_cert_days | 90 | Validity of the server certificate in days (at least 2). The server renews it automatically after two thirds of its lifetime. | |
agent_cert_days | 30 | Validity of agent certificates in days (at least 2). Agents renew them automatically after two thirds of their lifetime. | |
enrollment_token_minutes | 15 | Default lifetime of an enrollment token in minutes (1 to 1440). | |
session_hours | 12 | Lifetime of a web session in hours (1 to 720). | |
heartbeat_secs | 15 | Interval of the agent heartbeat in seconds (5 to 300). | |
max_jobs_per_agent | 1 | How many jobs run at the same time on one agent (1 to 16). | |
max_jobs_per_repository | 2 | How many jobs (backups and maintenance) run at the same time on one repository (1 to 64). | |
max_server_encryption_runs | 1 | Simultaneous backups into repositories with server-side encryption (1 to 16). The server chunks, compresses and encrypts them itself; budget about one CPU core per 100 to 200 MB/s for each run. Relevant only with [experimental] server_encryption. | |
config_backup_time | 03:30 | Local time (HH:MM) of the daily server configuration backup into every repository marked as a target for it. An empty string disables it. | |
run_log_days | 90 | Run logs are deleted this many days after the run finished (at least 1). | |
offline_run_timeout_minutes | 15 | A running job whose agent stays offline this long is marked failed (at least 1). | |
rpo_hours | 24 | Default recovery point objective (RPO) of a machine in hours for the protection status (1 to 8760). Individual agents can override it. | |
recovery_agent_hours | 24 | Agents enrolled with a recovery token stop working this many hours after enrollment (no session, no REST access, no renewal). | |
hardened_helper_socket | /run/pdc-immutable-helper/helper.sock | Unix socket of pdc-immutable-helper for hardened repositories (Linux only). |
Valid ranges that the server checks at startup: agent_cert_days and server_cert_days at least 2, enrollment_token_minutes 1 to 1440, session_hours 1 to 720, heartbeat_secs 5 to 300, max_jobs_per_agent 1 to 16, max_jobs_per_repository 1 to 64, max_server_encryption_runs 1 to 16, run_log_days and offline_run_timeout_minutes at least 1, rpo_hours 1 to 8760; config_backup_time must be HH:MM or empty.
Section [notifications]
Thresholds of the condition-based notifications (channels and rules are in the web interface, see chapter 10 Monitoring and Reports).
| Name | Required | Default | Description |
|---|---|---|---|
agent_offline_hours | 48 | An agent that stays offline this long raises the event agent_offline. 0: never. | |
repository_full_percent | 90.0 | A local or SMB repository volume that is this full (percent) raises repository_full. | |
certificate_days | 14 | Certificates expiring within this many days raise certificate_expiry. | |
base_url | Address of the web interface for links in messages. Empty: no links. |
Section [reports]
Schedule of the daily and the weekly report (content: see chapter 10 Monitoring and Reports). Times are the server's local time.
| Name | Required | Default | Description |
|---|---|---|---|
daily_time | 07:00 | Time (HH:MM) of the daily report. Empty: no daily report. | |
weekly_day | mon | Weekday of the weekly report: mon, tue, wed, thu, fri, sat or sun. Empty: no weekly report. | |
weekly_time | 07:15 | Time (HH:MM) of the weekly report. Empty is allowed. |
Sections [ransomware] and [ransomware.indicators]
Early warning for ransomware. Per job, the server compares every run with the moving baseline of the previous runs without a warning. The thresholds for change rate and entropy are in [ransomware]; the checks for ransom notes, onion addresses and known extensions are in [ransomware.indicators] (background: chapter 10 Monitoring and Reports).
| Name | Required | Default | Description |
|---|---|---|---|
enabled | true | Turns the early warning on or off. | |
min_baseline_runs | 3 | Number of runs needed before a baseline exists. | |
baseline_runs | 10 | Number of runs in the moving baseline. | |
change_rate_factor | 4.0 | Warn when the change rate exceeds this multiple of the baseline ... | |
change_rate_min | 0.25 | ... and at least this share of all files changed (0.25 = 25%). | |
entropy_ratio_jump | 0.4 | Warn when the share of high-entropy samples rises by at least this much over the baseline ... | |
min_samples | 20 | ... with at least this many samples. |
| Name | Required | Default | Description |
|---|---|---|---|
enabled | true | Master switch for all indicator checks (files and image backups). | |
note_names | true | Known ransom note file names (evidence N). | |
onion_links | true | V3 onion addresses in small text files (evidence O). | |
known_extensions | true | Extensions of known ransomware families (evidence X). | |
mass_rename | true | Mass rename and one new uncommon extension (evidence R and U). | |
note_min_files | 1 | Number of files with ransom note names needed for N. | |
known_extension_min_files | 5 | Number of files with a known extension needed for X. | |
rename_min_files | 20 | Number of files with the same new extension needed for R and U ... | |
rename_min_share | 0.25 | ... and their share of all files the backup read (0.25 = 25%). | |
image_scan | true | Scan the file tree of image backups on the server. | |
image_scan_seconds | 60 | Time budget of one image scan in seconds, both file trees together. | |
image_scan_max_entries | 2000000 | Most directory entries one image scan visits. | |
listed_paths | 20 | Example paths listed in the run log and the notification. |
Sections [wol] and [power]
Wake-on-LAN for agents with a scheduled run, and power management of the server PC. [power] applies to Windows only.
| Name | Required | Default | Description |
|---|---|---|---|
broadcast | 255.255.255.255:9 | Default destination of magic packets as an IPv4 address with port (UDP). For packets across routers or into another subnet, enter the subnet's broadcast address. An invalid value prevents startup. | |
wait_minutes | 10 | Minutes the server waits for the agent after a packet before it logs that the machine did not wake. The run keeps waiting for the agent. |
| Name | Required | Default | Description |
|---|---|---|---|
keep_awake | true | Keeps Windows awake while runs are active. | |
wake_timers | false | Arms a wake timer for the next scheduled job. Needs "Allow wake timers" in the Windows power plan. Can also be switched in Settings under Server. | |
wake_lead_minutes | 2 | Minutes before the next job at which the wake timer fires. |
Sections [metrics], [experimental] and [rotation]
[metrics] controls access to /metrics (Prometheus, Zabbix), [experimental] enables unfinished features, [rotation] controls the detection of rotated drives (see chapter 08 Repositories and Storage).
| Name | Required | Default | Description |
|---|---|---|---|
require_token | false | /metrics requires the header Authorization: Bearer <metrics token>. A newly created server.toml contains true; an older file without the section keeps false, and the dashboard warns until a token is required. | |
listen | (not set) | Separate HTTPS address for /metrics only (server certificate). When set, the web port answers /metrics with 404. Changes need a restart. |
| Name | Required | Default | Description |
|---|---|---|---|
server_encryption | false | Allows repositories with server-side encryption (isolation server_encryption). So far only file backups run into them; restores to agents are missing. For tests, not for data you must rely on. |
| Name | Required | Default | Description |
|---|---|---|---|
scan_secs | 10 | Seconds between two scans for attached drives. 0 turns the watcher off; scans then run only through POST /rotation-sets/scan. | |
mount_roots | [] | Folders whose subfolders (two levels) may be drive roots. Empty: drive letters on Windows, mount points below /media, /run/media and /mnt on Linux. |
Section [oidc]
Optional sign-in through an OpenID Connect provider (Authentik, Keycloak, Entra ID) using the authorization code flow with PKCE. Without the section, OIDC is off. If the section exists, issuer, client_id and redirect_url must be set, otherwise the server does not start. Role mapping and sign-in behavior are described in chapter 11 Users and Security.
| Name | Required | Default | Description |
|---|---|---|---|
issuer | β | Issuer URL. The discovery file must exist at <issuer>/.well-known/openid-configuration. Must start with https:// unless allow_http is set. | |
client_id | β | Client ID at the provider. | |
client_secret | β’β’β’ | Confidential clients only. Empty for public clients (PKCE only). | |
redirect_url | β | Callback address https://<server>:8443/api/v1/auth/oidc/callback; it must be registered at the provider. | |
scopes | [] | Extra scopes besides openid. | |
username_claim | Claim with the user name. Empty: preferred_username, then email, then sub. | ||
role_claim | Claim with group or role names (string or array). | ||
role_map | {} | Table of claim value to role (admin, operator, restore, readonly). The highest matching role wins. In TOML as its own section [oidc.role_map]. | |
default_role | Role when no mapping matches. Empty: the sign-in is refused (403). | ||
create_users | false | Creates users on first sign-in. Otherwise only existing OIDC users can sign in. | |
label | Label of the sign-in button. | ||
allow_http | false | Allows issuers with http://. For tests and lab setups only. |
Complete example
The file below contains every key with its default value (this is how the server writes it on first start), plus a commented-out OIDC section. It is enough to keep only the keys that differ from the defaults.
web_listen = "0.0.0.0:8443"
agent_listen = "0.0.0.0:8444"
public_names = []
server_cert_days = 90
agent_cert_days = 30
enrollment_token_minutes = 15
session_hours = 12
heartbeat_secs = 15
max_jobs_per_agent = 1
max_jobs_per_repository = 2
max_server_encryption_runs = 1
config_backup_time = "03:30"
run_log_days = 90
offline_run_timeout_minutes = 15
rpo_hours = 24
recovery_agent_hours = 24
hardened_helper_socket = "/run/pdc-immutable-helper/helper.sock"
[notifications]
agent_offline_hours = 48
repository_full_percent = 90.0
certificate_days = 14
base_url = ""
[reports]
daily_time = "07:00"
weekly_day = "mon"
weekly_time = "07:15"
[ransomware]
enabled = true
min_baseline_runs = 3
baseline_runs = 10
change_rate_factor = 4.0
change_rate_min = 0.25
entropy_ratio_jump = 0.4
min_samples = 20
[ransomware.indicators]
enabled = true
note_names = true
onion_links = true
known_extensions = true
mass_rename = true
note_min_files = 1
known_extension_min_files = 5
rename_min_files = 20
rename_min_share = 0.25
image_scan = true
image_scan_seconds = 60
image_scan_max_entries = 2000000
listed_paths = 20
[wol]
broadcast = "255.255.255.255:9"
wait_minutes = 10
[power]
keep_awake = true
wake_timers = false
wake_lead_minutes = 2
[metrics]
require_token = true
# listen = "127.0.0.1:9101"
[experimental]
server_encryption = false
[rotation]
scan_secs = 10
mount_roots = []
# Optional: sign-in through an OpenID Connect provider
# [oidc]
# issuer = "https://auth.example.net/application/o/pdc/"
# client_id = "pdc-backup"
# client_secret = ""
# redirect_url = "https://backup-pc:8443/api/v1/auth/oidc/callback"
# scopes = ["groups"]
# role_claim = "groups"
# default_role = "readonly"
# create_users = true
# label = "Authentik"
#
# [oidc.role_map]
# pdc-admins = "admin"
# pdc-operators = "operator"