[PATCH] rate limiting rsync copies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is causing disk contention without a limit
---
 configs/db/backup-dbs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configs/db/backup-dbs b/configs/db/backup-dbs
index a3a12fa..83ed6c8 100755
--- a/configs/db/backup-dbs
+++ b/configs/db/backup-dbs
@@ -22,7 +22,7 @@ mv $DEST/$HOSTNAME.new $DEST/$HOSTNAME
 for host in db01 db02 db03; do
     if [ "$host" != $HOSTNAME ]; then
         su - dbbackup -c "ssh $host mkdir -p $DEST/$HOSTNAME"
-        su - dbbackup -c "rsync -azr -e ssh $DEST/$HOSTNAME/* $host:$DEST/$HOSTNAME/"
+        su - dbbackup -c "rsync -azr --bwlimit=5000 -e ssh $DEST/$HOSTNAME/* $host:$DEST/$HOSTNAME/"
     fi
 done
 
-- 
1.5.5.6

_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux