From 256e8d5f73294dd5a0952946d3bc8654ad64a0b4 Mon Sep 17 00:00:00 2001 From: Gregor <2184823+klevze@users.noreply.github.com> Date: Thu, 16 Dec 2021 07:46:53 +0100 Subject: [PATCH] Update backupSQL Added --column-statistics=0 --- backupSQL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backupSQL b/backupSQL index b7c5036..ea191a5 100755 --- a/backupSQL +++ b/backupSQL @@ -12,7 +12,7 @@ databases=`$MYSQL --defaults-extra-file=$CONFIG_FILE -e "SHOW DATABASES;" | grep for db in $databases; do echo "Backuping database: " $db - $MYSQLDUMP --defaults-extra-file=$CONFIG_FILE --single-transaction --force --opt --databases ${db} | gzip > "$BACKUP_DIR$db-${datum}.sql.gz" + $MYSQLDUMP --defaults-extra-file=$CONFIG_FILE --column-statistics=0 --single-transaction --force --opt --databases ${db} | gzip > "$BACKUP_DIR$db-${datum}.sql.gz" done ### Remove files older than 30 days ###