Browse Source

Changed psql to pg_restore

pull/118/head
Igor Diakonov 5 years ago
parent
commit
2f86476c60
  1. 2
      postgres-restore-s3/restore.sh

2
postgres-restore-s3/restore.sh

@ -73,7 +73,7 @@ fi
echo "Restoring ${LATEST_BACKUP}"
psql $POSTGRES_HOST_OPTS -c -d $POSTGRES_DATABASE < dump.sql
pg_restore $POSTGRES_HOST_OPTS -C -c --if-exists -no-owner -v -d $POSTGRES_DATABASE < dump.sql
echo "Restore complete"
Loading…
Cancel
Save