From e110cb4ec92638e1372c0fcd535d515ccc355aeb Mon Sep 17 00:00:00 2001 From: Olivier Cuypers Date: Tue, 7 Mar 2017 20:14:08 +0100 Subject: [PATCH] Exclude sys & innodb databases on mysql-backup-s3 With the latest versions of MySQL there are new databases to exclude from bz --- mysql-backup-s3/backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql-backup-s3/backup.sh b/mysql-backup-s3/backup.sh index 9e19982..ab16c89 100644 --- a/mysql-backup-s3/backup.sh +++ b/mysql-backup-s3/backup.sh @@ -63,7 +63,7 @@ copy_s3 () { # Multi file: yes if [ ! -z "$(echo $MULTI_FILES | grep -i -E "(yes|true|1)")" ]; then if [ "${MYSQLDUMP_DATABASE}" == "--all-databases" ]; then - DATABASES=`mysql $MYSQL_HOST_OPTS -e "SHOW DATABASES;" | grep -Ev "(Database|information_schema|performance_schema|mysql)"` + DATABASES=`mysql $MYSQL_HOST_OPTS -e "SHOW DATABASES;" | grep -Ev "(Database|information_schema|performance_schema|mysql|sys|innodb)"` else DATABASES=$MYSQLDUMP_DATABASE fi