-
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf53b5f
commit c2da9b8
Showing
5 changed files
with
3,168 additions
and
2,964 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# | ||
# Backup a server with S3QL. | ||
# | ||
# VERSION :3.0.2 | ||
# VERSION :3.0.3 | ||
# DATE :2021-05-31 | ||
# AUTHOR :Viktor Szépe <[email protected]> | ||
# URL :https://github.com/szepeviktor/debian-server-tools | ||
|
@@ -125,8 +125,8 @@ Backup_system_dbs() # Error 4x | |
mysqldump --skip-lock-tables mysql >"${TARGET}/db-system/mysql-mysql.sql" \ | ||
|| Error 41 "MySQL system databases backup failed" | ||
# https://dev.mysql.com/doc/refman/5.7/en/performance-schema-variable-table-migration.html | ||
if dpkg --compare-versions "$(echo 'SELECT @@global.innodb_version;' | mysql -N)" lt 5.7.6 \ | ||
|| [ "$(echo 'SELECT VERSION() LIKE "%MariaDB%";' | mysql -N)" == 1 ]; then | ||
if [ "$(echo 'SELECT VERSION() LIKE "%MariaDB%";' | mysql -N)" == 1 ] \ | ||
|| dpkg --compare-versions "$(echo 'SELECT @@GLOBAL.innodb_version;' | mysql -N)" lt 5.7.6; then | ||
mysqldump --skip-lock-tables information_schema >"${TARGET}/db-system/mysql-information_schema.sql" \ | ||
|| Error 42 "MySQL system databases backup failed" | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.