2022-01-16 01:06:19 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source .env
|
|
|
|
|
|
|
|
DIR="${DATA_MOUNT_PATH}"
|
|
|
|
if [[ "$1" != "" ]]; then
|
|
|
|
DIR="$1"
|
|
|
|
fi
|
|
|
|
|
2022-01-16 10:07:35 +00:00
|
|
|
find "${DIR}" -type f | docker-compose run --rm srg -format postgres -pg_table entries -pg_mode insert_binary -pg_connstr "user=orbeat password=orbeat dbname=orbeat sslmode=disable host=db"
|
2022-01-16 01:06:19 +00:00
|
|
|
|