Files
development/4dev/database/bin/import_data.sh

24 lines
330 B
Bash
Executable File

#!/bin/bash
# quick hack for import
#echo "EXIT";
#exit;
db='<db name>';
host='<db host>';
user='<db user>';
#schema="publicv";
for file in `cat ORDER`;
do
if [ -f $file ];
then
# for path in $schema;
# do
# echo "WORK ON "$schema"."$file;
psql -U $user -h $host -f $file $db 1>> output 2>> error
# done;
fi;
done;