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
βββ 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.isoLinux
βββ 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.isoThe 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 |
|---|---|
| The server's whole state. Belongs in the disaster backup; the server backs it up daily itself (configuration backup) |
| 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 |
| Settings; keys in chapter 13 Configuration Reference |
| Internal CA and keys. The private keys are additionally encrypted with the master key |
| Logs ( |
| Agent packages. The installers and server packages place them here; after a repair, "Rescan folder" under Deployment picks them up |
|
|
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
βββ 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 scriptsThe program is in C:\Program Files\PDC-Backup Agent. The service is called PDCBackupAgent.
Linux
βββ 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 scriptsThe 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 |
|---|---|
| Limits of the helper (owned by root) |
| Its own lock records and enrolled root folders; kept even after the package is removed |
| Unix socket, the default of |
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.