suom1

MariaDB Dump Script

Nov 25th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. /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