Railway

Deploy pgbr

Postgres backup & restore

Deploy pgbr

Just deployed

/var/lib/pgbr/data

Deploy and Host pgbr on Railway

pgbr (PostgreSQL Backup & Restore) is a self-hosted tool designed for developers to easily manage reliable database backups. It provides a clean, secure web interface to create, restore, schedule, and migrate PostgreSQL databases using native pg_dump and pg_restore operations, all without needing to write complex command-line scripts.

About Hosting pgbr

Hosting pgbr on Railway involves deploying its lightweight Docker container. Once deployed, pgbr securely stores encrypted database connections and allows you to configure automated, cron-based backup schedules. By hosting it in the cloud alongside your actual PostgreSQL databases, you drastically reduce latency during data transfers, making scheduled backups, data restoration, and one-click migrations significantly faster and more dependable.

Common Use Cases

  • Automated Backup Scheduling: Setting up customizable cron jobs to ensure your mission-critical databases are backed up automatically without manual intervention.
  • Database Migrations: Seamlessly migrating data from one PostgreSQL instance to another using built-in, one-click data transfer tools.
  • Visual Interface for CLI Tools: Empowering developers and team members to utilize powerful native flags for pg_dump and pg_restore through an intuitive dashboard instead of a terminal.

Dependencies for pgbr Hosting

  • Persistent Volume: A storage volume must be attached to retain backup files and configuration data across container restarts.

Deployment Dependencies

Implementation Details

When configuring your Railway service, ensure you map the following environment variables to successfully initialize the application:

  • A secure, random string used to sign user sessions AUTH_SECRET=your_secure_random_string

  • The public URL of your pgbr instance (use Railway's provided domain) BASE_URL=RAILWAY_PUBLIC_DOMAIN

  • The path to your data directory (map your Railway volume here) PGBR_DATA=/var/lib/pgbr/data

Why Deploy pgbr 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 pgbr 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

More templates in this category

View Template
N8N Main + Worker
Deploy and Host N8N with Inactive worker.

jakemerson
View Template
NEW
Evolution API with n8n
WhatsApp HTTP REST API with n8n automation, PostgreSQL and Redis.

codestorm
View Template
Postgres Backup
Cron-based PostgreSQL backup to bucket storage

Railway Templates