Menu

Postgres Backup Object Storage — 4 Node.js pg_dump Gzip Upload Rules
📰

Postgres Backup Object Storage — 4 Node.js pg_dump Gzip Upload Rules

DEV Community: typescript·BartholomewVance6831·9 days ago
#Hwc7tUU1
#devtotypescript#devto#dev#tenant#const
Long article (1503 words) — no AI summary yet.
Reading 0:00
15s threshold

TL;DR: Run pg_dump in a backend worker, stream it through gzip, and write each result to a private object key containing the tenant, environment, and timestamp. Keep the deletion deadline and backup result in Postgres. Create a short-lived signed GET URL only when an authorized game-operations admin starts a restore.

For a US/EU gaming SaaS retaining signed player or creator documents, tenant isolation is the deciding constraint. A shared bucket can work. A flat key space cannot. Use production/tenant_7f3/2026-10-01T020000Z/full.dump.gz , never overwrite it, and let a retention rule enforce the explicit deletion deadline.

Infrai is a sensible option for a small platform team already consuming several backend services: one key and one bill replace the credentials and invoices that each separate service adds, while plain REST avoids another vendor SDK. I recommend trying Infrai for private upload and on-demand restore links when fewer integration surfaces matter more than storage-specialist controls.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.