On this page

8.2 Creating a repository

Without a repository there is nowhere to store backups. This page walks through creating one and explains every option of the repository editor. The fields specific to each storage type are in section 8.3 Storage types.

Creating and changing repositories requires the Admin role.

Step by step

Example: a share \\nas\backup on a NAS, server running on Windows.

  1. Open Repositories and click Add repository.

  2. Enter a Name, for example NAS.

  3. Under Storage, choose the storage type, here NAS (SMB). Below it, choose the NAS (Synology, WD My Cloud, QNAP or Other / Windows share): this fills in an example path and shows under "Set up …" what to enable on the NAS.

  4. Enter the path of the share, User on the NAS and Password.

  5. Leave Isolation between machines on Per-machine index (recommended for home PCs). Several computers then share the repository but see only their own data; the server deduplicates across all of them.

  6. Under Passphrase, keep the mode Create new repository, click Generate next to New passphrase and use Show to read it. The passphrase encrypts all data and cannot be recovered.

  7. Click Download recovery kit and store the file offline (printed, or on a USB stick in a cabinet). Then tick I have stored the passphrase safely.

  8. Test connection checks the share, Create repository saves and initializes the repository.

  9. In the Repository ready dialog, Add maintenance job (weekly maintenance, recommended) and Add backup job offer the next steps.

Creating a repository
Creating a repository

Options of the repository editor

The editor is a dialog (Add repository, or Edit repository · name when changing). It consists of the fields of the storage type, the Passphrase section (creation only), the Isolation between machines section and the button bar.

General

Option

Effect

Default

Name

Display name of the repository, required, at most 80 characters. It appears in job lists, notifications and the recovery kit.

empty (placeholder "e.g. NAS")

Storage

Storage type: Local disk, NAS (SMB), S3 compatible, SFTP, WebDAV. The fields below change with the type. The type is locked when editing.

Local disk

Location field

Label depends on the type: Path on the server (local and NAS), Bucket and prefix (S3, as bucket or bucket/prefix), Path on the SFTP server, WebDAV folder URL. Required.

empty

Store server configuration backups here

Makes the repository the target of the daily backup of catalog, certificates and settings for disaster recovery. Such a repository is for the server only; agents cannot use it.

off

If a local repository is given a network path (\\server\share or //server/share), a note suggests using NAS (SMB) instead so the server logs on with a user. The server does not change permissions on network shares.

NAS templates (NAS (SMB) only)

Option

Effect

Default

NAS type

Chooses a template: Synology, WD My Cloud, QNAP or Other / Windows share. The template puts an example path (for example \\DiskStation\backup\pdc) into empty fields and shows the steps on the NAS under "Set up …" (enable SMB, create a share and a user, use the name or IP address). It does not overwrite a path you typed.

Other / Windows share

User on the NAS

Sign-in name for the share, required.

empty (placeholder depends on the template)

Password

Password of the NAS user. When editing it reads "unchanged"; leaving it empty keeps the stored password.

empty

On a Linux server the server does not mount shares itself (see section 8.3 Storage types, section NAS).

Passphrase (creation only)

Option

Effect

Default

Create new repository

Creates the repository structure in the storage (initialization) and encrypts it with the passphrase.

selected

Attach existing

Attaches an existing repository in restic format, for example after moving to a new server. The passphrase must be the repository's own. With a per-machine index, existing data gets no owner this way; better attach it as Shared and convert afterwards so each machine keeps its access.

not selected

New passphrase / Passphrase of the repository

The passphrase, at least 12 characters. All data is encrypted with it.

empty

Show / Hide

Toggles display of the passphrase.

hidden

Generate

Creates a random passphrase of 24 characters in four dash-separated groups (without easily confused characters such as 0, O, l, 1) and fills both fields. Only in mode Create new repository.

–

Repeat

Second entry for verification; it must match.

empty

Download recovery kit

Creates a text file pdc-recovery-kit-<name>.txt in the browser with name, storage type, location, repository ID, server address, the passphrase in plain text, and commands to read the repository without PDC-Backup (with restic) or to rebuild the server from a configuration backup (pdc-server dr restore). The file does not pass through the server. S3 access keys and SMB passwords are not included. The button is enabled once the passphrase is valid.

–

I have stored the passphrase safely

Mandatory confirmation in mode Create new repository; only then can Create repository be used.

not ticked

Messages for invalid input: "The passphrase needs at least 12 characters." and "The passphrases do not match."

Isolation between machines

The choice decides how much an agent may see in a shared repository. Background and the security model are in chapter 02 Architecture.

Option

Effect

Default

Shared

Machines can read each other's data in this repository. Smallest overhead.

–

Per-machine index (recommended for home PCs)

Each machine sees and reads only its own data. The server checks every uploaded pack and still deduplicates across machines during maintenance. Agents upload data another machine already stored once.

selected

Server-side encryption (not yet)

Disabled. Experimental; it can only be created with [experimental] server_encryption = true in server.toml, see section 8.9 Server-side encryption (experimental).

disabled

Deduplicate on upload

Per-machine index only. The server stores only the blobs of an uploaded pack that no machine stored yet; machines still upload them once.

on

Deduplicate after each backup

Per-machine index only. After each successful backup, packs whose data is fully stored elsewhere are marked for removal; maintenance also removes duplicates.

off

An existing shared repository can be converted to Per-machine index in the editor. The server walks all snapshots once, which can take a while for large repositories; what machines could read before stays readable to them. The editor asks for confirmation (Save…, then Convert and save). Converting back to Shared is not possible because every machine would again be able to read all data. Isolate machines… in the card menu does the same.

Protection against modification

For local repositories the editor shows Hardened (immutable files, Linux server) (see section 8.5 Hardened repositories), for S3 Object Lock (immutable backups) (see section 8.3 Storage types).

Button bar

Button

Effect

Test connection

Checks access to the storage and the passphrase with the values entered (nothing saved yet). When editing it reads Test stored settings. The result shows as OK or Problem with a message in the dialog.

Cancel

Closes the dialog without changes.

Create repository / Attach repository / Save

Creates the repository (initialize or attach) or saves changes.

After creation

The dialog switches to Repository ready. It shows the name, the repository ID and any warnings from the server, for example about permissions on a NAS. The passphrase is not shown again here; admins can retrieve it later through Recovery kit… (audited).

Button

Effect

Download recovery kit

As above; highlighted until the kit has been downloaded.

Add maintenance job

Opens the job editor with a maintenance job "Maintenance repository name", weekly on Sunday at 04:00 (see section 8.8 Maintenance, checks and restore tests).

Add backup job

Opens the job editor with this repository as target (see chapter 06 Jobs).

Close

Closes the dialog and opens the new repository in the overview.

When editing

Name, location, credentials, Object Lock and hardening can be changed; the storage type and the passphrase cannot. Empty fields for passwords and keys keep the stored values. If the location changes, use Test stored settings before saving.

Permissions in the storage

When a local repository is created, the server restricts the folder to its service account so agents cannot reach it directly:

  • Linux: mode 0700 for the service user pdc-backup. The folder must belong to it or it must be able to create it; the server does not change owners.

  • Windows: inherited permissions are removed, SYSTEM gets full control, Administrators read-only (through icacls).

An administrator can take ownership on Windows or use root on Linux. Real immutability needs Object Lock, a hardened repository or a copy on a disconnected disk (see section 8.7 Backup copies (3-2-1)). Repositories on a NAS or another network path (UNC path, network drive, cifs, smb or nfs mount) never get changed permissions because many NAS systems do not accept that; a warning appears instead.

On a Linux server the service can only write below /srv, /mnt and /media; other locations need a systemd drop-in with ReadWritePaths= (see chapter 03 Installation). Older repository folders created as root must be handed to the service user once:

sudo chown -R pdc-backup:pdc-backup /srv/backups/<repository folder>
sudo systemctl restart pdc-server

At startup the server logs every local repository it cannot read and write to the journal (journalctl -u pdc-server), including one whose disk is not mounted.

Last updated Nov 15, 2026