On this page

2.5 Data locations

This page shows where the server and the agent keep their data, keys, certificates and logs. This matters for backing up the server itself, for troubleshooting and for permissions. The keys of the configuration file server.toml are listed in chapter 13 Configuration Reference.

Server

Windows

C:\ProgramData\PDC-Backup\server
β”œβ”€β”€ catalog.db  # catalog (SQLite, plus catalog.db-wal and catalog.db-shm)
β”œβ”€β”€ secret.key  # master key, bound to the machine by DPAPI
β”œβ”€β”€ server.toml  # configuration, created with defaults on first start
β”œβ”€β”€ pki/  # certificate authorities, certificates, keys (encrypted)
β”‚   β”œβ”€β”€ ca.crt
β”‚   β”œβ”€β”€ ca.key
β”‚   β”œβ”€β”€ server.crt
β”‚   β”œβ”€β”€ server.key
β”‚   β”œβ”€β”€ server.next.key  # only during a key rotation
β”‚   β”œβ”€β”€ server.names  # names in the server certificate
β”‚   β”œβ”€β”€ extra.names  # extra names from Settings β†’ Certificate
β”‚   β”œβ”€β”€ web.crt  # own certificate of the web interface (optional)
β”‚   β”œβ”€β”€ web.key
β”‚   β”œβ”€β”€ deploy-ca.crt  # CA for the WinRM certificates of the push scripts
β”‚   β”œβ”€β”€ deploy-ca.key
β”‚   └── package-signing.key  # signing key of the agent packages
β”œβ”€β”€ logs/  # JSON logs, rotated daily, 30 days
β”œβ”€β”€ tmp/  # scratch space (uploads, staging)
β”œβ”€β”€ packages/  # agent packages for pull and self-update
β”‚   β”œβ”€β”€ pdc-agent-windows-x86_64.exe
β”‚   β”œβ”€β”€ pdc-agent-linux-x86_64
β”‚   └── pdc-agent-linux-aarch64
└── recovery/  # recovery ISO for download
    └── pdc-recovery.iso

Linux

/var/lib/pdc-backup
β”œβ”€β”€ catalog.db  # catalog (SQLite, plus catalog.db-wal and catalog.db-shm)
β”œβ”€β”€ secret.key  # master key, mode 0600
β”œβ”€β”€ server.toml  # configuration, created with defaults on first start
β”œβ”€β”€ pki/  # certificate authorities, certificates, keys (encrypted)
β”‚   β”œβ”€β”€ ca.crt
β”‚   β”œβ”€β”€ ca.key
β”‚   β”œβ”€β”€ server.crt
β”‚   β”œβ”€β”€ server.key
β”‚   β”œβ”€β”€ server.next.key  # only during a key rotation
β”‚   β”œβ”€β”€ server.names  # names in the server certificate
β”‚   β”œβ”€β”€ extra.names  # extra names from Settings β†’ Certificate
β”‚   β”œβ”€β”€ web.crt  # own certificate of the web interface (optional)
β”‚   β”œβ”€β”€ web.key
β”‚   β”œβ”€β”€ deploy-ca.crt  # CA for the WinRM certificates of the push scripts
β”‚   β”œβ”€β”€ deploy-ca.key
β”‚   └── package-signing.key  # signing key of the agent packages
β”œβ”€β”€ logs/  # JSON logs, rotated daily, 30 days
β”œβ”€β”€ tmp/  # scratch space (uploads, staging)
β”œβ”€β”€ packages/  # agent packages for pull and self-update
β”‚   β”œβ”€β”€ pdc-agent-windows-x86_64.exe
β”‚   β”œβ”€β”€ pdc-agent-linux-x86_64
β”‚   └── pdc-agent-linux-aarch64
└── recovery/  # recovery ISO for download
    └── pdc-recovery.iso

The data directory can be changed at start with --data-dir (pdc-server --data-dir /var/lib/pdc-backup run). Windows: the folder is readable only by SYSTEM and administrators. Linux: the owner is the service account pdc-backup, mode 0700.

File or folder

Content and notes

catalog.db

The server's whole state. Belongs in the disaster backup; the server backs it up daily itself (configuration backup)

secret.key

Master key for all encrypted secrets. Without it the secrets in the catalog and the keys in the pki folder are unreadable. The configuration backup contains it wrapped with the DR passphrase

server.toml

Settings; keys in chapter 13 Configuration Reference

pki/

Internal CA and keys. The private keys are additionally encrypted with the master key

logs/

Logs (PDC_LOG sets the level)

packages/

Agent packages. The installers and server packages place them here; after a repair, "Rescan folder" under Deployment picks them up

recovery/

pdc-recovery.iso for download in the web interface

Programs live apart from the data: the Windows setup installs to C:\Program Files\PDC-Backup (with the downloads folder for the agent setup, .deb and .rpm), the Linux package to /usr/bin/pdc-server.

Repositories are not in the data directory but wherever the administrator created them. A local repository should not live on the server's system disk alone, otherwise the backups are lost together with the disk.

Agent

Windows

C:\ProgramData\PDC-Backup\agent
β”œβ”€β”€ agent.toml  # server_url and agent_id
β”œβ”€β”€ agent.key  # the agent's private key
β”œβ”€β”€ agent.crt  # the agent's certificate
β”œβ”€β”€ ca.crt  # certificate of the server CA
β”œβ”€β”€ server.pins  # key pins of the server
β”œβ”€β”€ package.key  # public key for agent updates
β”œβ”€β”€ scanner.json  # optional: malware scanner for secure restore and scans
β”œβ”€β”€ logs/  # agent logs
└── tmp/  # scratch space, for example for database files and scripts

The program is in C:\Program Files\PDC-Backup Agent. The service is called PDCBackupAgent.

Linux

/var/lib/pdc-agent
β”œβ”€β”€ agent.toml  # server_url and agent_id
β”œβ”€β”€ agent.key  # the agent's private key
β”œβ”€β”€ agent.crt  # the agent's certificate
β”œβ”€β”€ ca.crt  # certificate of the server CA
β”œβ”€β”€ server.pins  # key pins of the server
β”œβ”€β”€ package.key  # public key for agent updates
β”œβ”€β”€ scanner.json  # optional: malware scanner for secure restore and scans
β”œβ”€β”€ logs/  # agent logs
└── tmp/  # scratch space, for example for database files and scripts

The program is in /opt/pdc-agent/pdc-agent. The service is called pdc-agent (systemd). For self-service the agent listens on the Unix socket /run/pdc-agent/agent.sock.

The agent stores no backup data and no storage credentials. It keeps the job's repository password in memory only. Tool folders (bin_dir, qmp_dir) from which it starts programs must be local, absolute and not writable by others.

Helper service for hardened repositories (Linux)

Path

Content

/etc/pdc-immutable-helper/config.toml

Limits of the helper (owned by root)

/var/lib/pdc-immutable-helper

Its own lock records and enrolled root folders; kept even after the package is removed

/run/pdc-immutable-helper/helper.sock

Unix socket, the default of hardened_helper_socket in server.toml

What to back up

For the server itself: catalog.db, secret.key, pki/ and server.toml make up its state. The built-in configuration backup covers them (chapter 14 Operations and FAQ). The repositories and their passphrases have to be protected separately. If the master key is missing, recovery goes through the DR passphrase and the configuration backup.

Last updated Nov 16, 2026