Menu

Node.js cron backups — database dump zip to an S3-compatible bucket, presigned restore
📰

Node.js cron backups — database dump zip to an S3-compatible bucket, presigned restore

DEV Community: node·RhysFalconer159·9 days ago
#KSLU7a2z
#devtonodejs#devto#dev#storage#object
Long article (1751 words) — no AI summary yet.
Reading 0:00
15s threshold

Pick the shape before you pick the vendor. A nightly Node.js cron job that zips a database dump and pushes it into an S3-compatible bucket has two honest forms: the app process streams the bytes itself, or it only mints a presigned URL and lets the backup runner do the upload. For the property-management system I'm using as the worked example here — one Postgres database plus a constant drip of inspection photos and unit walkthrough videos — the presigned form is the one I'd ship, because no request handler in the app should be babysitting a 4 GB media upload just to keep object storage current.…

Continue reading — create a free account

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