Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /usr/bin/mysql -e 'show databases' | /usr/bin/awk '{print $1}' | /bin/grep -v "^Database$" | grep -v information_schema | grep -v performance_schema | /usr/bin/xargs -i{} /usr/bin/mysqldump --defaults-extra-file=/root/.my.cnf --opt -Q -r $BASEDIR/db-{}-`date +%F-%H%M`.sql {}
Add Comment
Please, Sign In to add comment