[PATCH] rate limiting rsync copies
Toshio Kuratomi
a.badger at gmail.com
Tue Mar 23 17:53:07 UTC 2010
On Tue, Mar 23, 2010 at 10:45:43AM -0700, Jesse Keating wrote:
> On Tue, 2010-03-23 at 17:26 +0000, Mike McGrath wrote:
> > 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
> >
>
> ACK
>
+1
-Toshio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/infrastructure/attachments/20100323/2217ce1d/attachment.bin
More information about the infrastructure
mailing list