Menu

Cron Backups of App Data to an S3-Compatible Bucket (Presigned Restore Included)
πŸ“°

Cron Backups of App Data to an S3-Compatible Bucket (Presigned Restore Included)

DEV Community: goΒ·SuttonHawkins6723Β·16 days ago
#OUY6bUUX
#devtogo#devto#dev#object#tenant
Long article (2257 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Use a private bucket per tenant, date-based key prefixes, and a short-lived presigned URL for every restore. That one rule covers the boring 95% of app data backups on S3-compatible object storage: a cron job uploads the nightly database dump plus a zip of that tenant's media, nothing is ever publicly linkable, and a restore is an ordinary HTTPS download that expires on its own.

The upload is the easy half.

What gets you paged is the other half. I run the cron and queue tier for an edtech platform, and the two incidents that keep coming back are a job that silently didn't run and a job that ran twice β€” one leaves you with no backup, the other leaves you with two objects and no idea which one is complete. Neither shows up in a dashboard that only counts successful API calls. Both show up at 8am when a school asks for last term's gradebook.

So the design below is written backwards from those failure modes, rather than from a feature list.…

Continue reading β€” create a free account

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