From fe692084e831ee4314e09da95841ecf1d15a00e2 Mon Sep 17 00:00:00 2001 From: mirocow Date: Tue, 16 Feb 2016 15:07:53 +0400 Subject: [PATCH] Update restore.sh --- restore.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/restore.sh b/restore.sh index 8678bfc..8f40464 100755 --- a/restore.sh +++ b/restore.sh @@ -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; LOAD DATA LOCAL INFILE '$DIR/$BDD/$segment' INTO TABLE $TABLE; - SET foreign_key_checks = 1; SET unique_checks = 1; SET sql_log_bin = 1;" - if [ -f "$DIR/$BDD/$segment" ]; then - f_log "Delete segment $segment" - rm $segment - fi + SET foreign_key_checks = 1; SET unique_checks = 1; SET sql_log_bin = 1;" && rm $segment done if [ ! -f "$DIR/$BDD/$TABLE.txt.bz2" ]; then f_log "> $TABLE"