Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nelsondev19/postgres-minio-backups
A simple Docker application to backup your PostgreSQL database to Minio via a cron.
https://github.com/nelsondev19/postgres-minio-backups
bash-scripting docker minio postgresql railway-template
Last synced: about 1 month ago
JSON representation
A simple Docker application to backup your PostgreSQL database to Minio via a cron.
- Host: GitHub
- URL: https://github.com/nelsondev19/postgres-minio-backups
- Owner: nelsondev19
- Created: 2024-11-17T23:31:38.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-11-17T23:54:22.000Z (about 1 month ago)
- Last Synced: 2024-11-18T00:30:10.049Z (about 1 month ago)
- Topics: bash-scripting, docker, minio, postgresql, railway-template
- Language: Shell
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.
[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/7VQo0T)
## 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
```