diff -Nur e-smith-mysql-2.6.0.bz9671.old/root/etc/e-smith/events/actions/mysql-dump-tables e-smith-mysql-2.6.0.bz9671.new/root/etc/e-smith/events/actions/mysql-dump-tables --- e-smith-mysql-2.6.0.bz9671.old/root/etc/e-smith/events/actions/mysql-dump-tables 2016-02-05 23:29:32.000000000 +0100 +++ e-smith-mysql-2.6.0.bz9671.new/root/etc/e-smith/events/actions/mysql-dump-tables 2016-07-16 02:28:30.889035357 +0200 @@ -6,7 +6,7 @@ echo "mysqld is disabled - no tables dumped" >&2 exit 0 fi -for db in $(mysql -BNre "show databases;") +for db in $(mysql -BNre "show databases;"|egrep -vi "^information_schema$|^performance_schema$") do mysqldump --ignore-table=mysql.event --single-transaction --add-drop-table -QB "$db" -r /home/e-smith/db/mysql/"$db".dump || exit 1 done diff -Nur e-smith-mysql-2.6.0.bz9671.old/root/etc/e-smith/events/actions/mysql-load-tables e-smith-mysql-2.6.0.bz9671.new/root/etc/e-smith/events/actions/mysql-load-tables --- e-smith-mysql-2.6.0.bz9671.old/root/etc/e-smith/events/actions/mysql-load-tables 2016-02-05 23:29:32.000000000 +0100 +++ e-smith-mysql-2.6.0.bz9671.new/root/etc/e-smith/events/actions/mysql-load-tables 2016-07-16 02:26:05.376344286 +0200 @@ -7,6 +7,7 @@ exit 0 fi /bin/rm -f /home/e-smith/db/mysql/information_schema.dump +/bin/rm -f /home/e-smith/db/mysql/performance_schema.dump if [ ! -f /var/lib/mysql/mysql/user.frm ] then for db in $(ls /home/e-smith/db/mysql/*.dump 2> /dev/null | grep -v '/mysql.dump')