Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- FILE=$1
- if [ "$FILE" == ""]; then
- echo "Usage: $0 /path/to/dump.sql"
- exit 1
- fi
- /usr/local/postgres/bin/psql \
- -h 127.0.0.1 \
- -p 5432 \
- -U postgres \
- -d periscope \
- -f ${FILE} \
- -v ON_ERROR_STOP=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement