These how-tos cover backups, own domains, working with other tools and the protection settings of CDPDrive.
In this article <DRIVE_HOST>, <STORAGE_HOST> and <CDN_HOST> stand for the addresses of your own installation, for example drive.example.com, storage.example.com and cdn.example.com.
Backing up your files
Files in CDPDrive are S3 objects in CDPStorage, so any backup program that speaks the S3 API generically can copy a project.
Use these settings:
| Setting | Value |
|---|---|
| Endpoint | https://<STORAGE_HOST> (port 443) |
| Addressing | path style (virtual-host style is not supported) |
| Region | any string, e.g. eu-fra |
| Signature | Signature V4 |
| Bucket | the bucket name of the project |
| Credentials | <ACCESS_KEY> / <SECRET_KEY>, ideally read-only and limited to this project |
Example with the AWS command line:
aws configure set default.s3.addressing_style path
aws s3 sync s3://<BUCKET> ./backup --endpoint-url https://<STORAGE_HOST> --region eu-fra
For the installation itself, cdpdrive-backup run saves a database dump, /etc/cdpdrive (master key, licence, node secrets) and the configuration;cdpdrive-backup verify <dir> restores the dump into a scratch database as a test.
The stored files are not part of this backup;
they lie on several storage nodes.
Keep the master key safe –
without it the stored data cannot be read.
Using your own domain
- Drive host: the Drive host is set at installation (see the offering page). Share links always use this host.
- CDN address per project: under project settings → Advanced you can enter an own host name such as cdn.example.com for the delivery zone. CDPDrive recognises the host, but the nginx site and the TLS certificate for it are not created automatically; your server administrator sets them up and points DNS to the server.
Working with other tools
- "Use this file": the dialog next to every file shows the share link Button, the S3 address (
s3://<BUCKET>/<path>and https), the CDN address, the image sizes, the address with version code and a ready image snippet with srcset – each with Copy. For a folder it shows the base addresses. - CDPCMS: the CDPCMS module "CDPDrive" adds a picker Button to the editor and the template helpers
cdpdrive_url()andcdpdrive_srcset(). - Own web pages: open
https://<DRIVE_HOST>/picker?embed=1in a window and listen for the message typecdpdrive-pick.
Protection and security
Accounts and one-time codes
Leave "TOTP required for administrators" on and consider "TOTP required for all users".
Adjust the lockout (default 5 failed attempts, 15 minutes) and the maximum sign-in duration under Settings → Security.
Switch on the mails for new sign-ins and 2FA changes under Settings → Mail.
Disable users that leave instead of sharing accounts.
Roles
Give members the lowest project role they need: viewer for reading, editor for uploading and sharing, admin only for deleting and the trash.
Share links
Set a password and pass it on separately, keep the validity short, use "Only one download" or a maximum number of downloads, and switch on notifications for sensitive files.
"Download allowed" off shows the file in the browser only;
a determined recipient can still save what is shown.
Block a link at once if it reaches the wrong person –
it then answers HTTP 410.
Access keys
S3 access keys are created by administrators on the page Access keys (S3).
Limit them to one project or prefix, grant only read, write or delete as needed, set an expiry and an IP allow list.
The secret is shown only once.
Encryption, copies and trash
Every stored file is encrypted at rest with keys protected by the server's master key, and each file is kept on several storage nodes (default 2 copies).
Deleted files stay in the trash for 30 days by default.
The audit log records sign-ins, changes and share actions in a hash chain;
"Verify" checks the chain.
IP addresses are shortened unless "Store full IP addresses" is on.