From 9b0bdb0c3519ae3d756df54c41085759334bb3df Mon Sep 17 00:00:00 2001 From: mirocow Date: Tue, 16 Feb 2016 16:17:13 +0400 Subject: [PATCH] Update restore_db.sh --- restore_db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restore_db.sh b/restore_db.sh index 4a208fb..9a1f863 100755 --- a/restore_db.sh +++ b/restore_db.sh @@ -37,7 +37,7 @@ restore() time mysql --defaults-extra-file=$CONFIG_FILE < $DIR/__create.sql 2>/dev/null fi - tables=$(ls -1 $DIR | grep -v __ | grep -v _part_ | awk -F. '{print $1}' | sort | uniq) + tables=$(ls -1 $DIR | grep -v __ | grep .sql | awk -F. '{print $1}' | sort | uniq) f_log "Create tables in $BDD" for TABLE in $tables; do