It has been revealed that openCloud’s decomposed storage layout is fast and reliable on a single VPS, but SSDs eventually fill up. The good news: you can keep your existing server, users, and metadata, and offload only the blob data to an S3-compatible object store such as Hetzner’s Object Storage. This article walks through the entire process-from planning and prerequisites to migration, verification, and rollback-and includes multiple concrete examples so you can adapt the steps to your own environment.

Scope: I focus on the opencloud-compose repository here.

Before touching production data, it helps to know how OpenCloud stores files internally:.

Therefore, moving to S3 means migrating only the blob portion. Owners, spaces, shares, and app configuration stay untouched.

Example: On a server where /var/lib/opencloud is mounted on a 200 GB SSD, metadata might consume 10 GB while blobs consume 180 GB. By switching to S3, the SSD only needs to host the 10 GB of metadata plus some growth, while the bucket scales independently.

Example Bucket Policy Snippet (JSON) restricting access to a single server IP:.

Adjust the ARN and source IP to match your environment.

Recent findings suggest that tip: If your VPS is behind a dynamic IP, skip the IP restriction and instead rotate the access key periodically. You can script rotation with mc admin user svcacct or Hetzner’s API and revision the .env file via Ansible.

The overlay changes STORAGE_USERS_DRIVER to decomposeds3, keeps system data on disk, and forwards the DECOMPOSEDS3_* values into the container.

Example: To test the overlay without touching production, you can run docker compose --env-file .env.example -f docker-compose.yml -f storage/decomposeds3.yml config | grep STORAGE_USERS_DRIVER and confirm the driver is decomposeds3.

You should see messages confirming that the service connects to the S3 endpoint.

If you see authentication errors, double-check the keys, endpoint URL, and region.

Recent findings suggest that performance tuning variables now live in section 4.1 so you can wire them in while editing the .env. Revisit those recommendations whenever you resize the VPS or bucket workload.

Compare timings to evaluate the new setup.

If you encounter a blocking glitch:.

Keep the S3 bucket intact during rollback so you can resume later without losing uploaded data.

It has been revealed that Q: Can I keep some spaces on local storage and others on S3? A: Not within a single storage-customers instance. You would need two providers and the dual-provider strategy described earlier.

Recent findings suggest that Q: Does Hetzner Object Storage support server-side encryption? A: Yes. You can enable it by adding DECOMPOSEDS3_SERVER_SIDE_ENCRYPTION=SSE-S3 and ensuring the bucket is configured accordingly.

Industry observers note that Q: What about backups once blobs live in S3? A: Continue backing up metadata locally. For blobs, enable bucket versioning or replicate to another region. Hetzner offers lifecycle policies for that.

Q: How do I monitor transfer costs? A: Use Hetzner’s usage dashboard or script mc admin trace to log API calls. Combine this with OpenCloud’s access logs to spot heavy users.

In a recent development, Q: Can I use AWS S3, Wasabi, or MinIO instead? A: Absolutely. Replace the endpoint/region with the provider-specific values. The driver is compatible with any S3 API.

Migrating OpenCloud’s blobstore to Hetzner S3 requires careful planning but pays off with elastic storage, predictable costs, and simpler scaling..

Happy scaling-and remember to keep those local metadata backups handy even after the move!

📌 Read also:

→ Read original article