All Templates / Automation

PostgreSQL S3 backups

PostgreSQL S3 backups

A simple NodeJS app to back up your PostgreSQL database to S3 via a cron.

Deploy PostgreSQL S3 backups

Backup CRON

railwayapp-templates/postgres-s3-backups

Just deployed

Overview

The template uses a basic cron job written in TypeScript to dump your PostgreSQL data to a file and then upload the file to S3.

Highlights

  • Configurable backup schedule: By default, the cron runs at 5 AM everyday but is configurable via the BACKUP_CRON_SCHEDULE environment variable.
  • Support for custom buckets: The script also supports using a AWS_S3_ENDPOINT environment variable to use any S3 compliant storage bucket (eg: Wasabi).

Template Content

Deploy Now

Details

Railway Templates

Created on Sep 1, 2022

638 total projects

252 active projects

100% success on recent deploys

TypeScript, Dockerfile

Automation



More templates in this category

View Template
Tier

Tier

A single tool to configure,orchestrate and manage your entire pricing stack


View Template
Trigger.dev

Trigger.dev

Open source background jobs framework for TypeScript.


Jan Henning

View Template
Mixpost Pro

Mixpost Pro

Self-hosted social media management


Brody Over