Update restore.sh
This commit is contained in:
parent
e331888171
commit
fe692084e8
|
@ -113,11 +113,7 @@ restore()
|
||||||
time mysql --defaults-extra-file=$CONFIG_FILE $BDD --local-infile -e "SET foreign_key_checks = 0; SET unique_checks = 0; SET sql_log_bin = 0;
|
time mysql --defaults-extra-file=$CONFIG_FILE $BDD --local-infile -e "SET foreign_key_checks = 0; SET unique_checks = 0; SET sql_log_bin = 0;
|
||||||
LOAD DATA LOCAL INFILE '$DIR/$BDD/$segment'
|
LOAD DATA LOCAL INFILE '$DIR/$BDD/$segment'
|
||||||
INTO TABLE $TABLE;
|
INTO TABLE $TABLE;
|
||||||
SET foreign_key_checks = 1; SET unique_checks = 1; SET sql_log_bin = 1;"
|
SET foreign_key_checks = 1; SET unique_checks = 1; SET sql_log_bin = 1;" && rm $segment
|
||||||
if [ -f "$DIR/$BDD/$segment" ]; then
|
|
||||||
f_log "Delete segment $segment"
|
|
||||||
rm $segment
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
if [ ! -f "$DIR/$BDD/$TABLE.txt.bz2" ]; then
|
if [ ! -f "$DIR/$BDD/$TABLE.txt.bz2" ]; then
|
||||||
f_log "> $TABLE"
|
f_log "> $TABLE"
|
||||||
|
|
Loading…
Reference in a new issue