Made by Nabuco (http://nomadblue.com/).
Note: Substitute [params] with the proper values.
Start server installed from Homebrew:
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start -w
Dump a local database using the :
pg_dump -Fc --no-acl --no-owner -h localhost -U [dbuser] [dbname] > $(date "+myproject_%Y%m%d.pgdump")
Restore a backup file to local:
pg_restore -d [dbname] latest.pgdump