Skip to content

Instantly share code, notes, and snippets.

@AntouanK
Created November 19, 2019 08:22
Show Gist options
  • Save AntouanK/6b1077486b341cbdc5955d308471418d to your computer and use it in GitHub Desktop.
Save AntouanK/6b1077486b341cbdc5955d308471418d to your computer and use it in GitHub Desktop.
dump a postgres db with pg_dump
docker run --rm -ti -v /tmp:/tmp postgres:alpine pg_dump -U postgres -h 123.45.67.89 -p 15432 -f /tmp/dump.sql -F t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment