orchardup / docker-postgresql

Deprecated - use the official postgres image.
https://registry.hub.docker.com/_/postgres/
Apache License 2.0
103 stars 62 forks source link

Instructions on how to back up #15

Closed crestenstclair closed 9 years ago

crestenstclair commented 10 years ago

Some quick instructions on how to back this up would be great!

piotr-sokolowski commented 10 years ago

_pgdump like with "regular" pg database. Also don't forget to mount data volume to your host machine, so you will not lose your data when container will be killed.

-v /location/on/your/host/machine/postgresql:/var/lib/postgresql