Files
development/4dev/database/bin/import_data.sh
2013-12-11 15:44:33 +09:00

25 lines
397 B
Bash
Executable File

#!/bin/bash
# $Id: import_data.sh 4382 2013-02-18 07:27:24Z gullevek $
# quick hack for import
#echo "EXIT";
#exit;
db='gullevek';
host='db.tokyo.tequila.jp';
user='gullevek';
#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;