web/bin/pg_restore
#!/usr/bin/env bash
db=ourbigbook
args=()
while [ $# -gt 0 ]; do
case "$1" in
-d)
db="$2"
shift 2
;;
*)
args+=("$1")
shift
;;
esac
done
PGPASSWORD=a pg_restore -U ourbigbook_user -h localhost --clean -d "$db" -v "${args[@]}"