Skip to content

Instantly share code, notes, and snippets.

@camsaul
Created September 25, 2014 19:09
Show Gist options
  • Save camsaul/b2c2d55f42d7b5bb44bf to your computer and use it in GitHub Desktop.
Save camsaul/b2c2d55f42d7b5bb44bf to your computer and use it in GitHub Desktop.
Make a Postgres DB Dump
#!/bin/bash
pg_dump --clean --create --file db.out --format p --verbose --host $DBHOST --port $DBPORT -U $DBUSER $DBNAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment