An open API service indexing awesome lists of open source software.

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

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
```