15 lines
656 B
Bash
Executable file
15 lines
656 B
Bash
Executable file
#!/bin/bash
|
|
|
|
source .env
|
|
|
|
DIR="${DATA_MOUNT_PATH}"
|
|
if [[ "$1" != "" ]]; then
|
|
DIR="$1"
|
|
fi
|
|
|
|
#find "${DIR}" -type f | docker-compose run srg -format postgres -pg_table entries -pg_mode insert -pg_connstr "user=orbeat password=orbeat dbname=orbeat sslmode=disable host=db"
|
|
#find "${DIR}" -type f | docker-compose run srg -format text -pg_binary true -pg_table entries -pg_mode insert -pg_connstr "user=orbeat password=orbeat dbname=orbeat sslmode=disable host=db"
|
|
#exit 0
|
|
find "${DIR}" -type f | docker-compose run srg -format postgres -pg_table entries -pg_mode insert_binary -pg_connstr "user=orbeat password=orbeat dbname=orbeat sslmode=disable host=db"
|
|
|