Update restore.sh
This commit is contained in:
parent
9b0bdb0c35
commit
971c2d0b1d
|
@ -82,7 +82,7 @@ restore()
|
||||||
f_log "Error: Database $BDD dose not exists";
|
f_log "Error: Database $BDD dose not exists";
|
||||||
else
|
else
|
||||||
|
|
||||||
tables=$(ls -1 $DIR/$BDD | grep -v __ | grep -v _part_ | awk -F. '{print $1}' | sort | uniq)
|
tables=$(ls -1 $DIR/$BDD | grep -v __ | grep .sql | awk -F. '{print $1}' | sort | uniq)
|
||||||
|
|
||||||
f_log "Create tables in $BDD"
|
f_log "Create tables in $BDD"
|
||||||
for TABLE in $tables; do
|
for TABLE in $tables; do
|
||||||
|
|
Loading…
Reference in a new issue