From 9c4293cfdce34a3246a1e05b28fcd011344cd4d0 Mon Sep 17 00:00:00 2001 From: Nombre Usuario Date: Tue, 28 Feb 2023 21:36:12 -0500 Subject: [PATCH] Mejora volcados mariadb --- arboldd/usr/local/adJ/vuelcatodomysql.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arboldd/usr/local/adJ/vuelcatodomysql.sh b/arboldd/usr/local/adJ/vuelcatodomysql.sh index c85d20761..60bd1974e 100755 --- a/arboldd/usr/local/adJ/vuelcatodomysql.sh +++ b/arboldd/usr/local/adJ/vuelcatodomysql.sh @@ -16,6 +16,6 @@ if (test "$cla" = "") then { } fi; dm=`date "+%d"` # Dia del mes /usr/local/bin/mysqldump --socket=/var/www/var/run/mysql/mysql.sock --force --xml -c -u $usu --password=$cla --all-databases > /var/www/resbase/mysql/mysql-$dm.xml -/usr/local/bin/gzip /var/www/resbase/mysql/mysql-$dm.xml -/usr/local/bin/mysqldump --socket=/var/www/var/run/mysql/mysql.sock --compatible=postgresql -c -u $usu --password=$cla --all-databases > /var/www/resbase/mysql/mysql-$dm.sql +/usr/bin/gzip -f /var/www/resbase/mysql/mysql-$dm.xml +/usr/local/bin/mysqldump --socket=/var/www/var/run/mysql/mysql.sock --lock-tables --user=$usu --password=$cla --all-databases > /var/www/resbase/mysql/mysql-$dm.sql