houdini/script/pg_restore_local_from_production.sh

6 lines
198 B
Bash
Raw Normal View History

#!/bin/bash
set -e
curl -o latest.dump `heroku pg:backups public-url -a commitchange`
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U admin -d commitchange_development latest.dump