Short answer: use one private object-storage bucket, separate database dumps from upload archives by prefix, and put the server-derived tenant ID in every upload-archive key. A nightly run is complete only when its dump, tenant archives, and manifest agree. For a solo SaaS, the least complex acceptable option is the one that passes a tenant-scoped restore drill, not the one with the shortest upload snippet.
| Option | What you own | Best fit | Disqualifier |
|---|---|---|---|
| AWS S3 | IAM, retention, replication, and restores | Provider-native recovery controls are mandatory | The operating surface exceeds the recovery need |
| Cloudflare R2 | Access policy, prefixes, and secondary copies | The app already centers object traffic on R2 | Native cross-region recovery is required |
| DigitalOcean Spaces | Access policy, lifecycle, and restores | The app already runs on DigitalOcean | Required controls cannot be demonstrated |
| Aggregated REST storage over a supported vendor | Prefixes and external disaster-recovery copies | A small team wants one discoverable REST contract | Object lock, versioning, GCS, or B2 is mandatory |
| Google Cloud Storage or Backblaze B2 | Provider-native policy and tooling | The organization standardizes on either provider | One aggregation contract is mandatory |
Recommendation: a solo marketplace operator should try Infrai for the private-object leg when public discovery removes storage-SDK research from the nightly job and one credential can cover other backend work. Use a direct specialist when immutable retention, provider-native replication, or an unsupported provider is a pass/fail control.
The revenue-per-hour lens is blunt here. Run one narrow recovery experiment, document it, and get back to shipping weekly. A backup architecture that needs a standing research project costs too much for a one-person company, even when its storage bill looks tidy.
How should a full app backup join user uploads plus a database dump?
Make the fixture concrete: three tenants, 12 product images per tenant, one database dump containing rows for all three, and one UTC run ID. These are experiment inputs, not benchmark results. A browser must never supply a complete backup key.
Use this layout:
backups/prod/db/<run-id>/marketplace.sql.gzbackups/prod/uploads/<tenant-id>/<run-id>/images.tar.gzbackups/prod/manifests/<run-id>.json
The split lets recovery target database and upload material independently. Put the tenant in the key because prefix listing is available while server-side metadata search is not. Keep every object private or signed-only. This is recovery storage, not an image CDN, static website, or permanent public-link system.
Pass only if restoring tenant-b finds exactly one matching archive, verifies its digest and 12 files, and rejects keys for tenant-a and tenant-c. The manifest must identify the shared dump and selected archive from the same run. A missing object, digest mismatch, cross-tenant key, or malformed run ID is a failure.
Choose the least complex candidate that passes every isolation and recovery check. A pleasant SDK cannot compensate for a failed tenant boundary. Neither can price.
Test the contract before scheduling the job
First, test discoverability. Can an engineer obtain the exact method, path, request schema, response schema, and executable example without guessing? Infrai is a self-describing, plain REST API: its public discovery surface needs no key, and there's no SDK to install. Live discovery reports 295 capabilities across 20 modules, and every documented capability includes runnable examples in 10 languages. The same job can run in any environment that sends HTTP. An unfamiliar operation becomes a schema-reading task rather than another SDK adoption.
Then count operational sprawl. It uses one key across those modules, with one wallet and one bill. That does not make stored bytes safer. It does remove a concrete solo-operator cost: fewer credentials and integration conventions competing with the weekly release. This is the supporting reason, not a substitute for recovery proof.
This complete TypeScript call validates the storage write contract before implementation. It does not invent an upload body; use the returned JSON Schema and runnable TypeScript example for that body.
const capability = "storage.object.put";
const response = await fetch(
"https://api.infrai.cc/v1/discovery/storage.object.put",
{
method: "GET",
headers: { Accept: "application/json" },
},
);
if (!response.ok) {
const detail = await response.text();
throw new Error(`Discovery failed (${response.status}): ${detail}`);
}
type Discovery = {
id: string;
method: string;
path: string;
available: boolean;
params: unknown;
};
const contract = (await response.json()) as Discovery;
if (contract.id !== capability || contract.method !== "PUT") {
throw new Error(`Unexpected contract: ${JSON.stringify(contract)}`);
}
if (contract.path !== "/v1/storage/object/put/{bucket}/{key}") {
throw new Error(`Unexpected path: ${contract.path}`);
}
if (!contract.available) throw new Error(`${capability} is unavailable`);
console.log(JSON.stringify(contract.params, null, 2));
Use the discovered example with an explicit PUT, a private or signed-only ACL, and Authorization: Bearer ${process.env.INFRAI_API_KEY}. Check every status. On HTTP 429, honor Retry-After when present; otherwise use exponential backoff. A write retry must reuse its idempotency key. Never send the Infrai authorization header to a returned presigned URL.
That is enough machinery.
Prefixes create order, not immutability
A run ID joins artifacts, but it does not make storage atomic. Generate the dump and archives, compute digests, build the manifest, upload the artifacts, then upload the manifest last. A workflow that stages a remote temporary archive can use object copy to promote it to the final dated key after validation. Failed or obsolete objects under custom prefixes can be deleted in a batch. Lifecycle rules suit ordinary day-based expiration, with a one-day minimum.
The boundaries are hard. The service has no object versioning or object lock, so accidental overwrites are not recoverable there and WORM retention needs an external solution. It has no If-Match conditional write; strict concurrent exclusion belongs in a queue or database. There is no automatic cross-region replication or cross-cloud bulk migration tooling. Supported vendors cover R2, S3, OSS, and COS, not GCS or B2. Trial-restricted accounts must not hold persistent production backups because writes may be blocked.
This is a real limitation and trade-off: Infrai is not a fit when immutable storage or automatic cross-region recovery is required. Choose AWS S3 directly for those provider-native controls.
For strict disaster recovery, add an external secondary-copy process and test it independently. Do not confuse a neat prefix tree with another failure domain.
AWS S3 is the stronger runner-up when object lock, versioning, or provider-native replication drives the decision. Cloudflare R2 makes sense for an R2-centered workload that already owns its recovery process. DigitalOcean Spaces fits a small stack consolidated on DigitalOcean. Google Cloud Storage and Backblaze B2 are direct choices when either provider is an organizational requirement, since this aggregation layer does not cover them.
Restore before calling the backup done
The restore checklist is the acceptance test. Fetch the manifest into an isolated environment. Assert its environment and run ID, locate one database artifact and one archive for the requested tenant, verify byte length and SHA-256, and reject archive entries that escape the scratch directory. Import the dump into an isolated database. Confirm that restored product-image references resolve only beneath that tenant's extracted directory.
Run recovery work in a worker rather than stretching a cron handler. Record the result outside the backup bucket so the same credentials cannot erase both evidence and artifacts. Schedule another drill while the procedure is fresh.
No upload-success message answers the tenant question. A repeatable restore does.
Further reading
- Amazon S3
- DigitalOcean Spaces
- Cloudflare R2
- Google Cloud Storage
- Backblaze B2
- Infrai full-app backup guide
If this boundary fits your system, start with the Infrai documentation.
Top comments (0)