Browse Source

Merge pull request #68 from schickling/OlivierCuyp-patch-1

Exclude sys & innodb databases on mysql-backup-s3
pull/70/head
Johannes Schickling 8 years ago
committed by GitHub
parent
commit
f2165531e4
  1. 2
      mysql-backup-s3/backup.sh

2
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

Loading…
Cancel
Save