Deploy One Time PostgreSQL S3 Backup

Backup your PostgreSQL database into a S3 bucket using Railway CRON

Deploy One Time PostgreSQL S3 Backup

Just deployed

Overview

Simple template to backup in one time your PostgreSQL database using the Railway CRON feature. The code is a basic script to dump your PostgreSQL data to a file and then upload the file to S3.

Highlights

  • Runs one time, so the cost is really low
  • Use the Railway CRON feature to schedule the backup
  • Configure custom S3 URL

Usage

Fill the template environment variables and configure the CRON job in the service settings.


Template Content

More templates in this category

View Template
Postgres-to-R2 Backup
Auto back up PostgreSQL databases to Cloudflare R2 with optional encryption

View Template
ReadySet
A lightweight caching engine for Postgres

View Template
Simple S3
Deploy a S3-compatible storage service with a pre-named bucket.