1 2 3 4 5 6
#!/bin/bash cd $(dirname $0) grep -v '^#' .backup | while read DB do mysqldump --column-statistics=0 ${LIGA_MYSQL_CONNECTION_OPTS} $DB > backup/$DB.sql done