This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
mysql_backup_simple [2014/11/18 05:26] kyxap update |
mysql_backup_simple [2015/04/04 10:35] kyxap |
||
---|---|---|---|
Line 44: | Line 44: | ||
# validate $DB and skip default dbs | # validate $DB and skip default dbs | ||
- | [[ $DB == all ]] && DB=$(mysql -e 'show databases' | tail -n +2 | grep -v -E "information_schema|performance_schema") | + | [[ $DB == all ]] && DB=$(mysql -e 'show databases' | tail -n +2 | grep -v -E "^(information_schema|performance_schema)$") |
# create dumps | # create dumps |