Proxmox Backup Server
Store Proxmox Backup Server datastores in XNS storage with the S3 backend.
Overview
Proxmox Backup Server (PBS) backs up Proxmox VE virtual machines and containers, and Linux hosts through proxmox-backup-client, with deduplication, incremental backups and verification. Since version 4.0 a datastore can keep its contents in an S3 bucket instead of on local disks. With XNS, PBS stores every chunk and snapshot of such a datastore in a bucket on your Relayer and keeps only a local cache on the server. The S3 backend became a fully supported feature in PBS 4.1.9; earlier 4.x releases mark it as a technology preview.
Tested with Proxmox Backup Server 4.2.8 on 2026-10-18 against Relayer build 59a37e64.
The test used https://<relayer-host>:9443 with a trusted certificate. A host backup of 205 files (74 MiB, including an empty file, a 64 MiB file and file names with spaces and non-ASCII characters) plus a 256 MiB disk image went to the bucket, and both restored with matching SHA-256 checksums. The datastore was then removed, its local cache deleted and the datastore re-created from the bucket alone; the restore from that copy also matched. Pruning, garbage collection and removing the datastore emptied the bucket. Proxmox VE virtual machine backups were not run; they use the same datastore.
Connect to XNS
Every S3 tool connects to your Relayer with the same settings. Enter them exactly as shown; the notes below the table cover the two that most tools get wrong by default.
| Setting | Value |
|---|---|
| Endpoint (HTTP) | http://<relayer-host>:9000, where <relayer-host> is the address of the machine running your Relayer. Always available. |
| Endpoint (HTTPS) | https://<relayer-host>:9443, available only after a certificate is installed on the Relayer. Port 9000 never serves HTTPS. |
| Region | us-east-1 |
| Addressing | Path-style. In tools that ask, turn on force path style or path-style access, and turn off virtual-hosted style. |
| Signature | Signature Version 4 (V4). Version 2 is refused. |
| Access key and secret key | For a tool, create a scoped key: IAM → Create IAM User in the Relayer UI. The secret is shown once, so copy it then. The install’s root pair is on Configure → Credentials; keep it for administration. |
| Bucket | Create it first: Files → Create Bucket in the Relayer UI, or let the tool create it. Names are 3-63 characters of lowercase letters, digits, hyphens and periods. |
HTTPS and certificates. The Relayer UI offers two certificates for port 9443: Let’s Encrypt, which needs a domain managed in Cloudflare and a Cloudflare API token, or self-signed. Most tools refuse a self-signed certificate unless certificate verification is turned off in the tool. On a private network, plain HTTP on port 9000 avoids the question.
Path-style. A tool left on virtual-hosted style (often labeled Amazon S3 or AWS) sends the bucket name in the hostname, and the Relayer cannot find the bucket. Choose the tool’s S3 compatible or generic S3 option and set path-style.
Not supported: server-side encryption with customer-provided keys (SSE-C) or KMS keys (SSE-KMS), bucket website hosting and bucket replication. Server-side encryption with AES256 is accepted. See Encryption at the Gateway, Identity and Access and Configure.
Prerequisites
- Proxmox Backup Server 4.1.9 or later, installed from the ISO or on Debian 13 (see Installation). No subscription is needed to use the S3 backend.
- HTTPS on port 9443 with a certificate on the Relayer. PBS never talks to S3 over plain HTTP, so port 9000 cannot be used. A trusted certificate (Let’s Encrypt) works with no further setting; a self-signed certificate works only when its fingerprint is entered in the endpoint (Step 1).
- A bucket for PBS and a scoped key on your Relayer (see the table above). PBS does not create buckets, so create it first. The key needs to get, put, list and delete objects; the canned ReadWrite policy is enough.
- A local disk or partition on the PBS server for the datastore cache. Proxmox recommends 64 to 128 GiB on a dedicated disk, partition or ZFS dataset with a quota.
Setup
Step 1: Add the S3 endpoint
In the PBS web interface (https://<pbs-host>:8007), go to Configuration → S3 Endpoints and choose Add.
| Field | Value |
|---|---|
| S3 Endpoint ID | A name of your choice, at least 4 characters, for example xns-storage. |
| Endpoint | <relayer-host> only: the host name or address, without https:// and without a port. The name must match the certificate. |
| Port | 9443 |
| Path Style | Checked. It is off by default, and PBS then sends the bucket name in the host name, which the Relayer does not serve. |
| Region | us-east-1 |
| Access Key / Secret Key | The scoped key’s access key and secret key. |
| Fingerprint | Empty for a trusted certificate. For a self-signed certificate, the certificate’s SHA-256 fingerprint (see below). |

Choose Add. The same endpoint from the command line:
proxmox-backup-manager s3 endpoint create xns-storage \ --endpoint <relayer-host> --port 9443 --path-style true --region us-east-1 \ --access-key '<access-key>' --secret-key '<secret-key>' proxmox-backup-manager s3 check xns-storage <bucket>
s3 check prints nothing when PBS can reach the bucket. To list the buckets the key can see, run proxmox-backup-manager s3 endpoint list-buckets xns-storage.
Self-signed certificate. Read the fingerprint on the PBS server and paste it into Fingerprint (or pass --fingerprint):
openssl s_client -connect <relayer-host>:9443 </dev/null 2>/dev/null \ | openssl x509 -noout -fingerprint -sha256
Enter the part after sha256 Fingerprint=, colons included. If the Relayer’s certificate is renewed or replaced, update the fingerprint.
Step 2: Create the datastore
Choose Datastore → Add Datastore. Set Datastore Type to S3, then fill in:
| Field | Value |
|---|---|
| Name | The datastore name. PBS uses it as the prefix of every object in the bucket, so several datastores can share one bucket. |
| Local Cache | An absolute path on the cache disk, for example /mnt/s3cache/<name>. It cannot be an existing regular datastore. |
| S3 Endpoint ID | The endpoint from Step 1. |
| Bucket | Pick the bucket from the list PBS reads from the Relayer. |

Leave Reuse existing datastore and Overwrite in-use marker (under Advanced) off for a new datastore, and choose Add. From the command line:
proxmox-backup-manager datastore create <name> /mnt/s3cache/<name> \ --backend type=s3,client=xns-storage,bucket=<bucket>
The task ends with TASK OK, and the bucket holds an <name>/.in-use marker.
Step 3: Back up
In Proxmox VE, add the datastore under Datacenter → Storage → Add → Proxmox Backup Server and use it in backup jobs like any other datastore. For a Linux host, use proxmox-backup-client:
export PBS_REPOSITORY='root@pam@<pbs-host>:<name>' export PBS_FINGERPRINT='<fingerprint of the PBS server>' # Dashboard → Show Fingerprint proxmox-backup-client backup data.pxar:/srv/data disk.img:/path/to/disk.img proxmox-backup-client snapshot list
The datastore’s Summary shows the data uploaded to and downloaded from the bucket and the request counts; Content lists the snapshots.


Step 4: Test a restore and verify
proxmox-backup-client restore host/<id>/<time> data.pxar /srv/restore proxmox-backup-manager verify <name>
Compare the restored files with the originals. Verify (also under Content → Verify All) reads every chunk and should report 0 errors. Chunks not in the local cache are read from the bucket.
Step 5: Recover the datastore on a new server
Everything PBS needs is in the bucket. On a fresh PBS server, add the same S3 endpoint, then create the datastore with the same name, a new local cache path, and both Reuse existing datastore and Overwrite in-use marker checked:
proxmox-backup-manager datastore create <name> /mnt/s3cache/<name> \ --backend type=s3,client=xns-storage,bucket=<bucket> \ --reuse-datastore true --overwrite-in-use true
PBS reads the snapshot list from the bucket; S3 Refresh (proxmox-backup-manager datastore s3-refresh <name>) reloads it later. Only one PBS server may use a datastore at a time.
Step 6: Remove old backups
- Prune or Forget removes snapshots from the bucket at once. Their chunks stay until Garbage Collection runs.
- Garbage collection removes only chunks not used for longer than the datastore’s GC Access-Time Cutoff (24 hours 5 minutes by default), so space in the bucket is freed about a day after a prune.
- Removing the datastore with Destroy all data (
datastore remove <name> --destroy-data true) deletes every object under the datastore’s prefix. Without it, the objects stay in the bucket and the datastore can be recovered as in Step 5.
Known limits
- HTTPS only. PBS refuses plain-text S3. Port 9000 fails with
wrong version number, and an endpoint entered withhttp://orhttps://is rejected by the form. Install a certificate on the Relayer and use port 9443. - Path Style must be checked. With it off, the bucket check fails with
head object failed,405 Method Not Allowed. - A self-signed certificate needs its fingerprint in the endpoint and a new fingerprint after every certificate change. The test used a trusted Let’s Encrypt certificate; the fingerprint path was not run.
- A local cache is required and must be on persistent storage. It cannot be memory-only or an existing datastore.
- Freed space appears a day later. Garbage collection keeps chunks newer than the access-time cutoff.
- Restore tasks in the task list can end with
connection error: not connectedafter the client has finished and disconnected; in the test, every restore that showed this completed and matched the originals. - Use PBS encryption for privacy. Client-side encryption (
--keyfile, or an encryption key on the Proxmox VE storage) was not tested; the Relayer does not support SSE-C or SSE-KMS. - Not tested: Proxmox VE virtual machine and container backups, sync jobs, tape, and object lock.
- Not supported by the Relayer: SSE-C and SSE-KMS server-side encryption, bucket website hosting and bucket replication.
More: Proxmox Backup Server storage documentation (section Datastores with S3 Backend) and the backup client.
