Last active
March 30, 2019 18:35
-
-
Save jmelchio/17ea330096163bfb5a7b2fd200b888c5 to your computer and use it in GitHub Desktop.
Sample of the creation of a postgres dumpfile using a docker container for running docker and running pg_dump
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
docker run -it --rm --link docker-postgres:postgres \ | |
-v"/home/joris/devel/go/src/github.com/jmelchio/vetlab/repository/ddl":"/tmp/dump" \ | |
postgres pg_dump -h postgres -U postgres --schema-only --dbname=vetlab -f /tmp/dump/vetlab_dump.sql | |
# That's All Folks !! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment