Skip to content

Commit

Permalink
Update backupSQL
Browse files Browse the repository at this point in the history
Added --column-statistics=0
  • Loading branch information
klevze authored Dec 16, 2021
1 parent ea8c91e commit 256e8d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backupSQL
Original file line number Diff line number Diff line change
Expand Up @@ -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 ###
Expand Down

0 comments on commit 256e8d5

Please sign in to comment.