[d3657c]: dist / bin / dump-mysql-all.sh Maximize Restore History

Download this file

dump-mysql-all.sh    19 lines (16 with data), 335 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#!/bin/bash
# bbou@ac-toulouse.fr
# 25/11/2013
# [password]
if [ -z "$MYSQLPASSWORD" ]; then
MYSQLPASSWORD=$1
shift
if [ -z "$MYSQLPASSWORD" ]; then
read -s -p "enter root's password: " MYSQLPASSWORD
echo
export MYSQLPASSWORD
fi
fi
for dbtag in 30 31 31_snapshot; do
./dump-mysql.sh --schema ${dbtag} $MYSQLPASSWORD
done