Commit 9c02cd56 authored by Vitaly Lipatov's avatar Vitaly Lipatov

update sync mysql script

parent d27f68af
......@@ -29,12 +29,13 @@ if [ "$1" = "--status" ] ; then
exit
fi
if [ "$" != "--force" ] ; then
mysqldump --routines -h mysql.auth -p$PASSWD mail >mail-dump.sql
if [ "$1" != "--force" ] ; then
echo "Call LAV before run this script. 28.11.2015"
exit
fi
mysqldump --routines -h mysql.auth -p$PASSWD mail >mail-dump.sql
mycommand "stop slave"
mycommand "reset slave"
myrcommand "show master status\G"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment