1 |
jpp |
1.1 |
diff -Nur smeserver-mysql57-2.0.0.old/root/etc/e-smith/events/actions/mysql57-dump-tables smeserver-mysql57-2.0.0/root/etc/e-smith/events/actions/mysql57-dump-tables |
2 |
|
|
--- smeserver-mysql57-2.0.0.old/root/etc/e-smith/events/actions/mysql57-dump-tables 2017-04-03 15:13:12.192000000 -0400 |
3 |
|
|
+++ smeserver-mysql57-2.0.0/root/etc/e-smith/events/actions/mysql57-dump-tables 2017-04-03 15:14:41.907000000 -0400 |
4 |
|
|
@@ -6,7 +6,7 @@ |
5 |
|
|
echo "mysql57-mysqld is disabled - no tables dumped" >&2 |
6 |
|
|
exit 0 |
7 |
|
|
fi |
8 |
|
|
-for db in $(/opt/rh/rh-mysql57/root/usr/bin/mysql --socket=/var/lib/mysql/mysql57.sock -BNre "show databases;") |
9 |
|
|
+for db in $(/opt/rh/rh-mysql57/root/usr/bin/mysql --socket=/var/lib/mysql/mysql57.sock -BNre "show databases;" | grep -vwE "(information_schema|performance_schema)") |
10 |
|
|
do |
11 |
|
|
/opt/rh/rh-mysql57/root/usr/bin/mysqldump --single-transaction --socket=/var/lib/mysql/mysql57.sock --add-drop-table -QB "$db" -r /home/e-smith/db/mysql57/"$db".dump || exit 1 |
12 |
|
|
done |