diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2010-02-02 06:22:05 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2010-02-02 06:22:05 +0100 |
commit | acf151887dadf21aac804b641187f6f497e30f41 (patch) | |
tree | 19e4e66d9eccf01dfedb029e3c306451100706a6 | |
parent | 2da1c4ee2d9825d764337758819c6f45308cc4dd (diff) | |
download | backup-acf151887dadf21aac804b641187f6f497e30f41.tar.gz backup-acf151887dadf21aac804b641187f6f497e30f41.tar.xz backup-acf151887dadf21aac804b641187f6f497e30f41.zip |
removed unnecessary output
-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 |