1 |
stephdl |
1.1 |
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 |
2 |
|
|
--- 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 |
3 |
|
|
+++ 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 |
4 |
|
|
@@ -6,7 +6,7 @@ |
5 |
|
|
echo "mysqld is disabled - no tables dumped" >&2 |
6 |
|
|
exit 0 |
7 |
|
|
fi |
8 |
|
|
-for db in $(mysql -BNre "show databases;") |
9 |
stephdl |
1.2 |
+for db in $(mysql -BNre "show databases;"|egrep -vi "^information_schema$|^performance_schema$" |
10 |
stephdl |
1.1 |
do |
11 |
|
|
mysqldump --ignore-table=mysql.event --single-transaction --add-drop-table -QB "$db" -r /home/e-smith/db/mysql/"$db".dump || exit 1 |
12 |
|
|
done |
13 |
|
|
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 |
14 |
|
|
--- 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 |
15 |
|
|
+++ 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 |
16 |
|
|
@@ -7,6 +7,7 @@ |
17 |
|
|
exit 0 |
18 |
|
|
fi |
19 |
|
|
/bin/rm -f /home/e-smith/db/mysql/information_schema.dump |
20 |
|
|
+/bin/rm -f /home/e-smith/db/mysql/performance_schema.dump |
21 |
|
|
if [ ! -f /var/lib/mysql/mysql/user.frm ] |
22 |
|
|
then |
23 |
|
|
for db in $(ls /home/e-smith/db/mysql/*.dump 2> /dev/null | grep -v '/mysql.dump') |