From db9e0568daf4fde9db2edab14b412534aa1e4964 Mon Sep 17 00:00:00 2001 From: mirocow Date: Tue, 16 Feb 2016 15:20:14 +0400 Subject: [PATCH] check errors --- restore.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restore.sh b/restore.sh index 2132fe0..a7660c4 100755 --- a/restore.sh +++ b/restore.sh @@ -113,7 +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;" && rm $segment + SET foreign_key_checks = 1; SET unique_checks = 1; SET sql_log_bin = 1;" done if [ ! -f "$DIR/$BDD/$TABLE.txt.bz2" ]; then f_log "> $TABLE"