Dont delete source file
This commit is contained in:
parent
024da4cc60
commit
719abd0f15
|
@ -65,7 +65,7 @@ restore()
|
||||||
f_log "rm $DIR/$TABLE.txt"
|
f_log "rm $DIR/$TABLE.txt"
|
||||||
rm $DIR/$TABLE.txt
|
rm $DIR/$TABLE.txt
|
||||||
fi
|
fi
|
||||||
bunzip2 $DIR/$TABLE.txt.bz2
|
bunzip2 -k $DIR/$TABLE.txt.bz2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$DIR/$TABLE.txt" ]; then
|
if [ -f "$DIR/$TABLE.txt" ]; then
|
||||||
|
@ -86,8 +86,8 @@ restore()
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ ! -f "$DIR/$TABLE.txt.bz2" ]; then
|
if [ ! -f "$DIR/$TABLE.txt.bz2" ]; then
|
||||||
f_log "> $TABLE"
|
f_log "Delete source file: $TABLE.txt"
|
||||||
bzip2 $DIR/$TABLE.txt
|
rm $DIR/$TABLE.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue