diff options
-rwxr-xr-x | mysql/mysql_backup.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mysql/mysql_backup.sh b/mysql/mysql_backup.sh index 205d4d9..2110b14 100755 --- a/mysql/mysql_backup.sh +++ b/mysql/mysql_backup.sh @@ -51,7 +51,8 @@ echo "flush logs;" | mysql -h${MYSQL_MASTER} -u${MYSQL_USER} \ -p${MYSQL_PASSWORD} # pause the replication to be able to do consistent backups -mysqladmin -h${MYSQL_SERVER} -u${MYSQL_USER} -p${MYSQL_PASSWORD} stop-slave +mysqladmin -h${MYSQL_SERVER} -u${MYSQL_USER} -p${MYSQL_PASSWORD} \ + stop-slave 2>&1 >/dev/null # create temporary dir mkdir -p ${TMP_DIRECTORY} @@ -79,7 +80,8 @@ do done # restart the replication -mysqladmin -h${MYSQL_SERVER} -u${MYSQL_USER} -p${MYSQL_PASSWORD} start-slave +mysqladmin -h${MYSQL_SERVER} -u${MYSQL_USER} -p${MYSQL_PASSWORD} \ + start-slave 2>&1 >/dev/null # echo created log of file sizes du -sch * | _log |