Deploy bun-pg-s3-backup
A simple Bun cron job to backup PostgreSQL databases to an S3 bucket
postgres-backups-cron
Just deployed
postgres-backups
Bucket
Just deployed
Deploy and Host bun-pg-s3-backup on Railway
A simple Bun script with a Railway bucket to enable blazingly fast automatic backups for your Postgres databases. Run this with a Railway cron schedule and configure the backup retention duration for a fast, easy and cost-efficient backup solution.
This is a fork of Railway's postgres-s3-backups repository which replaces Node with Bun and interacts with the Railway bucket using Bun's native S3 bindings for the best performance.
About Hosting bun-pg-s3-backup
Set up your Postgres database in your Railway project, then deploy this template into your project with the internal database URL set. Finally, set a cron schedule on the Bun service and let the cron job takes care of everything by itself.
The service has a default backup retention duration of 7 days. Customize this in the variables section.
Common Use Cases
- Fast and cost-effective database backups for small to medium projects
Dependencies for bun-pg-s3-backup Hosting
- Bring your own Postgres database
Deployment Dependencies
None
Why Deploy bun-pg-s3-backup on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying bun-pg-s3-backup on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
postgres-backups-cron
logic-pad/postgres-s3-backupsBACKUP_DATABASE_URL
URL of the Postgres database you want to backup
postgres-backups
Bucket
