From 719abd0f156793233f6e1f972e7098c24d4ef4c4 Mon Sep 17 00:00:00 2001 From: mirocow Date: Thu, 17 Mar 2016 17:52:27 +0400 Subject: [PATCH] Dont delete source file --- restore_db.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/restore_db.sh b/restore_db.sh index 7cc21fe..55de737 100755 --- a/restore_db.sh +++ b/restore_db.sh @@ -65,7 +65,7 @@ restore() f_log "rm $DIR/$TABLE.txt" rm $DIR/$TABLE.txt fi - bunzip2 $DIR/$TABLE.txt.bz2 + bunzip2 -k $DIR/$TABLE.txt.bz2 fi if [ -f "$DIR/$TABLE.txt" ]; then @@ -86,8 +86,8 @@ restore() done if [ ! -f "$DIR/$TABLE.txt.bz2" ]; then - f_log "> $TABLE" - bzip2 $DIR/$TABLE.txt + f_log "Delete source file: $TABLE.txt" + rm $DIR/$TABLE.txt fi fi