t2-stat-parser/build/postgres/docker-entrypoint-initdb.d/restore_db.sh

13 lines
334 B
Bash
Raw Normal View History

2020-02-06 16:26:32 -05:00
#!/bin/bash
echo "Setting up database..."
BACKUP_FILE_PATH=/docker-entrypoint-initdb.d/backup/t2_stats.sql
psql -d t2_stats -U dev -p 5432 -a -q -f $BACKUP_FILE_PATH
# -h PostgreSQL server IP address
# -d database name
# -U user name
# -p port which PostgreSQL server is listening on
# -f path to SQL script
# -a all echo
# -q quiet