Add a bandwidth limit to stop it killing my ADSL.
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 30 Oct 2008 09:41:32 +0000 (09:41 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 30 Oct 2008 09:41:32 +0000 (09:41 +0000)
upload.sh

index 6593a9d..0837e78 100755 (executable)
--- a/upload.sh
+++ b/upload.sh
@@ -4,8 +4,9 @@ PORT=22222
 SERVER=annexia.org
 USERNAME=rich
 REMOTEDIR=tmp/mingw/
+KBPS=25 ;# kilobytes per second
 
-rsync -av --delete \
+rsync -av --delete --bwlimit=$KBPS \
   ~/public_html/smock/yum/fedora-9 \
   -e "ssh -p $PORT" \
   $USERNAME@$SERVER:$REMOTEDIR