All Templates / Storage

PostgreSQL & S3 Backup

PostgreSQL & S3 Backup

PostgreSQL database with a CRON job that uploads a backup to S3

Deploy PostgreSQL & S3 Backup

S3 Backup

eeshugerman/postgres-backup-s3:16

Just deployed

Postgres

railwayapp-templates/postgres-ssl:latest

Just deployed

/var/lib/postgresql/data

PostgreSQL & S3 Backup

This template contains a PostgreSQL database and a CRON job that automatically creates a backup and uploads it to S3.

What you need

  • AWS Account with Access Key
  • S3 Bucket

Variables

NameDescriptionOptionalDefault value
SCHEDULECRON schedule at which the backup is run. The schedule also supports non standard values like @hourly, @daily, @weekly, @monthly and @yearly. If left empty the backup will be run immediately and the container will stopYes
BACKUP_KEEP_DAYSThe number of days to keep a backup file for. If left empty backups will NEVER be automatically deletedYes
PassphrasePassphrase to be used when encrypting the backup using GPG. If left empty NO encryption will be doneYes
S3_REGIONThe region the AWS S3 bucket was created inNo
S3_BUCKETThe name of the bucket to upload your files intoNo
S3_ACCESS_KEYThe ID of the your access key used to upload files into the S3 bucketNo
S3_SECRET_ACCESS_KEYThe secret key of your AWS access keyNo
S3_PREFIXThe prefix to be used when uploading the backup to S3. If left empty the backup will be uploaded to the root of the bucketNobackup

Template Content

Deploy Now

Details

Yannick's Projects

Created on Feb 17, 2024

14 total projects

2 active projects

100% success on recent deploys

Storage



More templates in this category

View Template
ReadySet

ReadySet

A lightweight caching engine for Postgres


Milo's Projects

View Template
Flare

Flare

A modern, lightning-fast file sharing platform built for self-hosting


FlintSH's Projects

View Template
EdgeDB

EdgeDB

EdgeDB template based on their Docker deployment guide


Ajit Krishna's Projects