---
title: "Deploy Postgres Minio Backups"
description: "A Docker to backup your PostgreSQL database to Minio via a cron."
category: "Automation"
url: https://railway.com/deploy/7VQo0T
---

# Deploy Postgres Minio Backups

A Docker to backup your PostgreSQL database to Minio via a cron.

**[Deploy Postgres Minio Backups on Railway](https://railway.com/template/7VQo0T)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/7VQo0T/manifest.json

- **Creator:** Nelson Hernández's Projects
- **Category:** Automation

## Template content

### Backup Job https://cdn.svgporn.com/logos/postgresql.svg

- **Image:** ghcr.io/nelsondev19/postgres-minio-backups:latest

## Documentation

# Postgres Minio backups

A Docker to backup your PostgreSQL database to Minio via a cron.

## Overview

The template use Docker and Bash Scripting to dump your PostgreSQL data to a file and then upload the file to Minio.

## Configuration

- `MINIO_ENDPOINT` - Minio endpoint. Example: `http://minio:9000`.

- `ACCESS_KEY` - Minio access key.

- `SECRET_KEY` - Minio secret key.

- `MINIO_BUCKET` - Minio bucket. Example `my-bucket`.

- `BACKUP_DATABASE_URL` - The connection string of the database to backup. Example: `"postgresql://username:password@host:port/database"`

- `CRON_SCHEDULE` - The cron schedule to run the backup on. Example: `0 5 * * *` the cron runs at 5 AM every day

## Restore data

Restore your data to the target database with pg_restore

```bash
pg_restore -v -d postgres_connection_string filename.bak
```


## Similar templates

- [N8N Main + Worker](https://railway.com/deploy/n8n-main-worker) — Deploy and Host N8N with Inactive worker.
- [Evolution API with n8n](https://railway.com/deploy/evolution-api-with-n8n) — Automate WhatsApp workflows with Evolution API, n8n, and Postgres.
- [Postgres Backup](https://railway.com/deploy/postgres-s3-backups) — Cron-based PostgreSQL backup to bucket storage

Open this page in a browser: https://railway.com/deploy/7VQo0T
