On this page

8.3 Storage types

PDC-Backup writes repositories to local folders, SMB shares, S3-compatible storage, SFTP servers and WebDAV collections. The type is chosen when the repository is created and cannot be changed afterwards. The general editor fields are in section 8.2 Creating a repository.

Overview

Type

Description

Local disk

Folder on the server, for example D:\Backups\pdc on Windows or /mnt/usb/pdc on Linux. Can additionally be hardened (see section 8.5 Hardened repositories).

NAS (SMB)

Share. On a Windows server a UNC path with user and password, on a Linux server a mount point; templates for Synology, WD My Cloud and QNAP.

S3 compatible

Object storage with endpoint, bucket and access key; optionally with Object Lock.

SFTP

Folder on an SSH server, with a password or private key and a confirmed host key.

WebDAV

Collection under an https:// URL with user and password, for example Nextcloud.

SFTP and WebDAV are reached by the server only; agents still write through the server (see chapter 02 Architecture). Credentials are stored encrypted and never shown again; the editor then displays "unchanged".

Local disk

Option

Effect

Default

Path on the server

Folder that holds the repository. It is created if missing and the service may do so. Placeholder: /srv/backup/pdc or D:\Backups\pdc.

empty

Hardened (immutable files, Linux server)

See section 8.5 Hardened repositories.

off

The server restricts the folder to its service account (see section 8.2 Creating a repository). A local path that points to a network share is not re-permissioned but gets a warning.

NAS (SMB)

On Windows the server logs on to the share with the stored credentials. This is necessary because a Windows service does not see the drives of logged-in users.

Option

Effect

Default

Path on the server

UNC path of the share with a subfolder, such as \\nas\backup\pdc. It must start with \\server\share. Linux server: a mount point, see below.

example of the NAS template

NAS type

Template with example path and setup hints (see section 8.2 Creating a repository).

Other / Windows share

User on the NAS

Sign-in name, required.

empty

Password

Password of the user.

empty

Any SMB share with SMB2 or newer works; Windows no longer speaks SMB1. The templates show the steps on the NAS:

Template

Hints on the NAS

Synology

DSM: Control Panel, File Services, SMB: enable the SMB service (SMB2 or SMB3). Create a shared folder (for example backup) and a user with read/write permission. Use the NAS name or IP address, for example \\192.168.1.20\backup\pdc.

WD My Cloud

In the dashboard create a share and give a user full access; public shares have no password and are not recommended. Set SMB/Windows file sharing to SMB2 or SMB3.

QNAP

QTS: Win/Mac/NFS/WebDAV, enable Microsoft Networking (highest SMB version SMB3). Create a shared folder and a user with read/write permission.

Other / Windows share

Any SMB share, SMB2 or newer, user with read/write permission.

Linux server: mounting the share

The Linux service runs without root and cannot mount anything. The system mounts the share (cifs), and in the editor you then choose Local disk with the mount point as the repository. When creating, the Linux server: mount this share on the server area, shown with NAS (SMB), helps with that:

Option

Effect

Default

Mount point on the server

Folder where the share appears, for example below /mnt or /media (the service may write there).

empty

Domain

Optional, for domain accounts.

empty

SMB version

negotiate, 3.1.1, 3.0 or 2.1.

negotiate

Encrypt (SMB3)

Encrypts the traffic to the NAS with SMB3.

off

Show command

Shows the command pdc-server smb-mount-unit … that an administrator runs once as root on the server. It asks for the NAS password, stores it in a file only root can read under /etc/pdc-backup/, and sets up a systemd mount and automount unit that assigns the files to the service account. Permissions on the NAS stay unchanged.

–

Check mount

Checks that the mount point is mounted, is cifs and is writable by the service account.

–

Use … as local repository

Switches to Local disk with the mount point as path.

–

Copy actions for the command, the mount unit, the automount unit and the options are in the right-click menu of the command box.

S3 compatible

Suitable for AWS S3 and compatible services (for example Wasabi, MinIO, RustFS).

Option

Effect

Default

Bucket and prefix

Bucket, optionally with a subfolder: bucket or bucket/prefix. The bucket must exist.

empty

Endpoint

URL of the service, required, for example https://s3.example.com.

empty

Region

Region of the bucket.

us-east-1 if empty

Access key ID

Access identifier, required when creating.

empty

Secret access key

Secret key, required when creating.

empty

Virtual-host style addressing (bucket in the host name)

Addresses the bucket as bucket.host instead of as a path. Some services require this.

off

Object Lock (immutable backups)

Object Lock protects every uploaded object against deletion and overwriting for a period. The server sets the bucket's default retention for this. The bucket must have been created with Object Lock (this enables versioning; on AWS the "Object Lock" option when creating the bucket, on MinIO and RustFS the header x-amz-bucket-object-lock-enabled). An existing bucket cannot be switched afterwards.

Option

Effect

Default

Lock every uploaded object for

Enables the lock.

off

Lock days

Whole number from 1 to 36500.

30

Governance

Users with the bypass permission can still delete.

selected

Compliance

Nobody can delete or shorten the lock, not even the storage admin. Storage costs for the lock period are certain.

not selected

Keep in mind:

  • Every job that writes into the repository needs a time-based retention longer than the lock (see section 8.4 Retention). Last alone is refused, Keep all is fine. Saving the repository is refused while jobs fall short of the lock; the editor names them.

  • Forget skips snapshots that are still locked. Prune leaves packs younger than the lock period plus one day alone. Locked index files that prune replaces are hidden behind delete markers.

  • A bucket lifecycle rule that expires noncurrent versions (for example after the lock period plus a week) keeps old versions from piling up.

  • The default retention applies to the whole bucket: use one bucket per repository.

  • Removing the lock in the editor only clears the bucket default; objects that are already locked stay locked. With Compliance, objects already uploaded keep their lock even if the mode or period is reduced; the change only affects new uploads.

SFTP

Creating an SFTP repository
Creating an SFTP repository

A folder on an SSH server, for example a NAS or rented storage space.

Option

Effect

Default

Path on the SFTP server

Folder on the server, required, for example /srv/backup/pdc.

empty

SFTP server

Host name or IP address, required. Placeholder nas.local or 192.168.1.20.

empty

Port

Port of the SSH service (1 to 65535).

22

User

Sign-in name, required.

empty

Sign-in

Choice between Password and Private key.

Password

Password

Password of the user. With Private key a password may be added as well.

empty

Private key (OpenSSH or PEM)

The key as text (-----BEGIN OPENSSH PRIVATE KEY----- …). If stored, it is tried first.

empty

Key passphrase

Only if the key has one.

empty

Host key

See below. Required.

not confirmed

Confirming the host key

The server refuses any host key it does not know before it sends credentials. This way an impostor server cannot capture the sign-in data.

  1. Click Fetch host key. The interface reads the key type and fingerprint (SHA256:…) without credentials.

  2. Compare the fingerprint with the one on the target machine, for example with ssh-keygen -l -E sha256 -f /etc/ssh/ssh_host_ed25519_key.pub (the interface fills in the key type; Copy check command and Copy fingerprint are in the right-click menu).

  3. Tick matches the server. The field then reads "confirmed".

If the server or port changes, the key must be confirmed again. A different key later stops every backup. If something is missing, the checks report "Enter the SFTP server.", "Enter the SFTP user." or "Fetch the host key and confirm that it matches the server."

WebDAV

A collection under an https:// URL, for example on Nextcloud or the WebDAV server of a Synology NAS.

Option

Effect

Default

WebDAV folder URL

Full URL of the folder, with no user name in the URL. Examples: Nextcloud https://cloud.example.com/remote.php/dav/files/USER/pdc, Synology WebDAV Server https://nas.local:5006/backup/pdc. Folders are created as needed.

empty

User

Sign-in name (Basic authentication).

empty

Password

Password; an app password for Nextcloud.

empty

Allow plain http (server on the local network only)

Appears as soon as the URL starts with http://. Without the tick the repository cannot be saved. User name and password otherwise cross the network unencrypted; the backups themselves stay encrypted. Prefer https.

off

Trusted certificate (server with a self-signed certificate)

Collapsible field for your own server certificate in PEM format (-----BEGIN CERTIFICATE-----). It lets you use a NAS with a self-signed certificate without turning off verification.

empty

With http:// and no tick, the editor says: "Plain http needs the local-network override; use https if the server offers it."

Specifics of SFTP and WebDAV

  • The server uploads to a file <name>.pdc-tmp-<random> and renames it (SFTP rename, WebDAV MOVE without overwriting). A size check follows. Maintenance cleans up leftovers of aborted uploads after 24 hours.

  • Object Lock does not exist for SFTP and WebDAV; hardening (see section 8.5 Hardened repositories) is limited to local disks.

  • On a remote folder PDC-Backup does not change permissions: anyone with write access there can change the backups.

Last updated Nov 15, 2026