Proxmox Backup Server
Proxmox Backup Server (PBS) stores deduplicated backups of virtual machines, containers and hosts in datastores. Since version 4.0, a datastore can keep its data in S3-compatible object storage, including chili. In PBS 4.0 and 4.1 the S3 backend was marked as a technology preview; since PBS 4.2 it is officially supported. The full guide is in the Proxmox documentation.
Prerequisites
- Proxmox Backup Server 4.2 or later (4.0 and 4.1 work, but the S3 backend is still a technology preview there)
- a bucket, created in the chili Console, for example
pbs-datastore. ChooseSet up manually: Object Lock off, versioning off, accessRead, write and delete. - chili access keys (access key and secret key) of the IAM user for PBS
- a local path for the datastore cache, ideally a dedicated disk, partition or ZFS dataset with a quota. Proxmox recommends 64 to 128 GiB.
PBS does not create buckets. The bucket must already exist in the chili Console before you create the datastore.
1. Add an S3 endpoint
In the PBS web interface, open Configuration > Remotes > S3 Endpoints and click Add.
Field | Value |
|---|---|
S3 Endpoint ID | a name of your choice, for example |
Endpoint |
|
Port | leave empty (default 443) |
Region |
|
Access Key | your chili access key |
Secret Key | your chili secret key |
Path Style | enable |
Fingerprint | leave empty, chili uses a publicly trusted certificate |
The same on the command line:
proxmox-backup-manager s3 endpoint create chili \
--endpoint s3-ch-east.chilistorage.com \
--region ch-east \
--access-key 'AKIA...' \
--secret-key '...' \
--path-style trueIf you created the bucket with georedundancy, enter s3-ch.chilistorage.com as the endpoint. See Endpoints and regions.
2. Create a datastore with an S3 backend
Open Datastore > Add Datastore.
Field | Value |
|---|---|
Name | datastore name, for example |
Datastore Type |
|
Local Cache | path for the local cache, for example |
S3 Endpoint ID |
|
Bucket |
|
On the command line:
proxmox-backup-manager datastore create chili-store /mnt/datastore/chili-cache \
--backend type=s3,client=chili,bucket=pbs-datastorePBS checks that the bucket is reachable when the datastore is created. The datastore name is used as the prefix for all objects in the bucket. An S3 datastore may only be used by one PBS instance at a time.
3. Add the datastore to Proxmox VE
Add the datastore to Proxmox VE like any other PBS datastore (Datacenter > Storage > Add > Proxmox Backup Server) and set up backup jobs. Schedule prune, garbage collection and verify jobs on PBS as usual.
Bucket without Object Lock
PBS does not support S3 Object Lock. Garbage collection must be able to delete chunks that are no longer needed, and a lock would block that. Create the bucket without Object Lock. Versioning brings no benefit with PBS, because deleted chunks would remain as older versions and keep using storage. The deletion key you set up when creating the bucket protects against the whole bucket being deleted by accident.
For protection against ransomware, combine the chili datastore with a second copy, for example via a sync job to another PBS, and use separate PBS permissions for backup and prune.
Verify
Run a first backup, then start a verify job on the datastore. Next, restore a VM or individual files from the backup. PBS reads the chunks from chili; the restore costs nothing, because chili charges no egress fees.
Common pitfalls
- Endpoint unreachable or signature errors: enter the endpoint without
https://, set the regionch-eastand enablePath Style. - Datastore cannot be created: check that the bucket exists in the chili Console and that the IAM user may read, write, list and delete objects.
- Garbage collection fails: the bucket was created with Object Lock. Create a new bucket without Object Lock.
- Local disk fills up: the cache needs its own space. Use a dedicated partition or a ZFS dataset with a quota.
- Reusing a datastore on a new PBS: create the datastore with the same name and the options
--reuse-datastore trueand--overwrite-in-use true. The name must match, because it forms the prefix in the bucket.