Skip to content

Commit

Permalink
daily
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Feb 20, 2024
1 parent bf53b5f commit c2da9b8
Show file tree
Hide file tree
Showing 5 changed files with 3,168 additions and 2,964 deletions.
6 changes: 3 additions & 3 deletions backup/system-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion debian-setup/packages/systemd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [ "$WITHOUT_SYSTEMD" == "yes" ]; then
# Remove systemd
# http://without-systemd.org/wiki/index.php/How_to_remove_systemd_from_a_Debian_jessie/sid_installation
if Is_installed systemd; then
Pkg_install_quiet sysvinit-core sysvinit-utils bootlogd
Pkg_install_quiet sysvinit-core sysvinit-utils bootlogd rsyslog
cp /usr/share/sysvinit/inittab /etc/inittab
# Change to agetty
#sed -i -e 's|:/sbin/getty |:/sbin/agetty |' /etc/inittab
Expand Down
Loading

0 comments on commit c2da9b8

Please sign in to comment.