From 15394b63b5f193d9414184deb1178ff8e3f148d4 Mon Sep 17 00:00:00 2001 From: Yaco Date: Sun, 8 Sep 2019 08:31:40 -0300 Subject: mejora borrado de db --- bin/sync/sync-wiki.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sync/sync-wiki.sh b/bin/sync/sync-wiki.sh index 6bd6abec..1bff0ecb 100755 --- a/bin/sync/sync-wiki.sh +++ b/bin/sync/sync-wiki.sh @@ -40,7 +40,7 @@ echo "" echo "" echo "###################" echo "Descomprimimos y reemplazamos la BD local por la remota" -rm "/tmp/*.sql" +rm "/tmp/*.sql.*" bunzip2 "/tmp/$REMOTO-$DB.sql.bz2" # mysql --user=$USER --password=$PASSWORD -e "CREATE database if not exists $BDIMPORT;" mysql --user=$USER --password=$PASSWORD $DB < "/tmp/$REMOTO-$DB.sql" -- cgit v1.2.1