Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirocow committed Feb 16, 2016
1 parent 1d573a6 commit f6678aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ restore()

split -l $CONFIG_CHUNK "$DIR/$BDD/$TABLE.txt" "$DIR/$BDD/${TABLE}_part_"
for segment in "$DIR/$BDD/${TABLE}"_part_*; do
f_log "Restore from $segment"
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 '$segment'
INTO TABLE $TABLE;
Expand Down Expand Up @@ -214,6 +215,10 @@ do
CONFIG_FILE=( "${i#*=}" )
shift # past argument=value
;;
--chunk=*)
CONFIG_CHUNK=( "${i#*=}" )
shift # past argument=value
;;
-v | --verbose)
VERBOSE=1
shift # past argument=value
Expand Down

0 comments on commit f6678aa

Please sign in to comment.