https://github.com/isutare412/postgres-dumper
Backup your PostgreSQL to AWS S3
https://github.com/isutare412/postgres-dumper
Last synced: 5 days ago
JSON representation
Backup your PostgreSQL to AWS S3
- Host: GitHub
- URL: https://github.com/isutare412/postgres-dumper
- Owner: isutare412
- Created: 2024-10-15T23:53:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-20T07:46:33.000Z (about 1 year ago)
- Last Synced: 2024-12-29T11:15:13.158Z (12 months ago)
- Language: Go
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
- [Postgres Dumper](#postgres-dumper)
- [Usage](#usage)
- [Deployment (CronJob)](#deployment-cronjob)
# Postgres Dumper
Backup your PostgreSQL to AWS S3 periodically. You can use linux crontab or k8s
[cronjob](#deployment-cronjob).
This repository was copied from a backup module of [Web
Memo](https://github.com/isutare412/web-memo) due to its feature
independentness.
# Usage
```bash
# Prepare your own config
cat <> config.local.yaml
process-timeout: 10m
log:
format: # text / json
level: # debug / info / warn / error
aws:
access-key:
secret:
region:
s3:
backup-bucket:
backup:
prefix:
retention: 720h # 30 days
postgres:
host: localhost
port: 5432
user:
password:
database:
EOF
make run
```
# Deployment (CronJob)
```bash
# Prepare your own values
cat <> my_values.yaml
config:
aws:
access-key:
secret:
region:
# ...
EOF
helm upgrade --install postgres-dumper ./helm/postgres-dumper -f my_values.yaml
```