Home › Docs › CDPStorage – Guides

Docs

CDPStorage – Guides

These guides show how to use CDPStorage for backups, how the storage address relates to your own domain, which tools you can use and how to protect the data.
<STORAGE_HOST> and <DRIVE_HOST> are the addresses of your own installation, for example storage.example.com and drive.example.com;
<BUCKET>, <ACCESS_KEY> and <SECRET_KEY> are your own values.

Backups with S3 programs

Any backup program that writes to a generic S3-compatible target can use CDPStorage, as long as it can be set to a custom endpoint, path-style addressing and Signature Version 4. CDPStorage does not ship or certify a particular backup program;
check the result with a restore test.

Recommended setup

  1. Create a separate project for backups, for example backup-server01. Switch off "CDN delivery" for this project in the project settings, so the backup files are never publicly reachable.
  2. Optionally set a quota (MB) in the project settings to limit the space the backup may use.
  3. Create a key only for this project, with the rights Read and Write. Give it Delete only if the backup program removes old backups itself.
  4. Enter the allowed IP address of the backed-up server in the key, so the key cannot be used from anywhere else.
  5. Enter the values in the backup program:
Setting in the programValue
Provider / typegeneric S3-compatible
Endpointhttps://<STORAGE_HOST>
Regioneu-fra
Path styleon
Bucket<BUCKET>
Multipart part sizeat least 5 MB (except the last part)
Parallel requestsmoderate; the reference setup allows 120 requests per second per IP

What to keep in mind

  • Bucket versioning and object lock are not available. Objects deleted over S3 go to the project trash and can be restored in CDPDrive for 30 days (setting trash_days); after that they are removed.
  • A single upload request may be up to 5120 MB. Larger files must be sent as multipart uploads.
  • Encryption at rest happens on the server. If you need your own client-side keys, use the encryption function of your backup program.

Your own domain

The storage address is a host name of your own domain, chosen at installation time (second argument of cdpdrive-install).
It needs a DNS record (A and/or AAAA) pointing to the server and a TLS certificate.
Changing it later is a server task for the administrator.
Per-project domains exist only for CDN delivery (CDPCDN, project settings → "Advanced: own domain for the CDN");
the S3 endpoint always stays https://<STORAGE_HOST>.

Tools

  • S3 programs and SDKs: any client with custom endpoint, path style and Signature V4. Use the settings from the table above.
  • curl: version 7.75 or newer signs requests with --aws-sigv4 "aws:amz:eu-fra:s3". Add the header x-amz-content-sha256: UNSIGNED-PAYLOAD.
  • CDPCMS: the CDPCMS module CDPDrive uploads the media folder of a website with php artisan cdpdrive:push.
  • Console of the installation: administrators can test the object store with php artisan cdpdrive:object put|get|ls|rm and manage keys with php artisan cdpdrive:key create|list.

Example: upload a backup archive with curl.

curl --aws-sigv4 "aws:amz:eu-fra:s3" \
  --user "<ACCESS_KEY>:<SECRET_KEY>" \
  -H "x-amz-content-sha256: UNSIGNED-PAYLOAD" \
  -T backup-2026-10-28.tar.gz \
  "https://<STORAGE_HOST>/<BUCKET>/daily/backup-2026-10-28.tar.gz"

Protection and security

Access keys

  • Least rights: give each program its own key with only the rights it needs (Read, Write, Delete).
  • Scope: limit the key to one project instead of "all projects", and optionally to a prefix such as daily/. Requests outside the scope are answered with AccessDenied and recorded in the audit log.
  • Creating buckets: allow "Create buckets" only for keys that really need it.
  • Expiry: set "Valid for (days)" for temporary access; expired keys are rejected.
  • IP allow list: single addresses or CIDR networks, comma-separated.
  • Disable, enable, remove: on the page "Access keys (S3)". The column "Last used" shows unused keys that can be removed.
  • Secret: shown once at creation and stored encrypted with the master key of the installation.

Sign-in to the web interface

TOTP one-time codes are required for administrators by default;
the setting "TOTP required for all users" extends this to everybody.
After 5 failed sign-ins (per address and per IP) the sign-in is locked for 15 minutes;
both values are adjustable.
Share links can be protected with a password, an expiry date and a download limit.

Storage

  • Encryption at rest: every stored file is encrypted in chunks (XChaCha20-Poly1305) with its own data key, which is wrapped with the master key of the installation. These are server-side keys; customer-provided keys are not supported. Keep the master key in your backup – without it the data cannot be read.
  • Replication: every file is stored on several nodes (default 2 copies, per project 1–9). On the page "Storage nodes" administrators check nodes and start "Repair" or "Rebalance".
  • Trash: deleted files stay restorable for 30 days.
  • Installation backup: cdpdrive-backup run saves the database and the configuration including keys; cdpdrive-backup verify tests a restore. The stored files themselves are protected by replication.