https://github.com/mecab/docker-pg_rman
Dockerfile for pg_rman
https://github.com/mecab/docker-pg_rman
docker dockerfile pg-rman postgres postgresql
Last synced: about 2 months ago
JSON representation
Dockerfile for pg_rman
- Host: GitHub
- URL: https://github.com/mecab/docker-pg_rman
- Owner: mecab
- License: mit
- Created: 2017-04-24T13:19:35.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-24T14:01:49.000Z (about 9 years ago)
- Last Synced: 2025-04-13T18:35:55.761Z (about 1 year ago)
- Topics: docker, dockerfile, pg-rman, postgres, postgresql
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Dockerfile for [pg_rman](http://ossc-db.github.io/pg_rman/)
===========================================================
⚠ Before You Pull
------------------
**Use appropriate tag for corresponding postgresql version.**
For example:
```bash
# for postgres 9.6
$ docker pull mecab/pg_rman:pg-9.6
# for postgres 9.5
$ docker pull mecab/pg_rman:pg-9.5
```
Examples
--------
```bash
$ docker run --rm \
-v /pg_data:/path/to/postgres_data_dir \
-v /backup:/path/to/backup_dir \
mecab/pg_rman init
$ docker run --rm \
-v /pg_data:/path/to/postgres_data_dir \
-v /backup:/path/to/backup_dir \
mecab/pg_rman backup -h {hostname} -p {port} -d {dbname} \
-U {username} -W {password} \
--backup-mode=full --compress-data --progress
# You can use the environment variables as well.
$ docker run --rm \
-v /pg_data:/path/to/postgres_data_dir \
-v /backup:/path/to/backup_dir \
-e PGHOST={hostname} \
-e PGPORT={port} \
-e PGDATABASE={dbname} \
-e PGUSER={username} \
-e PGPASSWORD={password} \
mecab/pg_rman backup --backup-mode=full --compress-data --progress
```