mhh - interesting question......

what about combining the power of throttle ( 
http://linux.die.net/man/1/throttle ) or similar tools (there are some more 
like this) with rsync ?

via this hint: http://lists.samba.org/archive/rsync/2006-February/014623.html i 
got a clue how to combine rsync and throttle and gave it a try :

cat throttle-wrap
#!/bin/bash
throttle -k 1 -s 1| "$@"

rsync --rsh='/tmp/throttle-wrap ssh' -avz /src  user@host:/dest 

seems to work fine for me, but mind that throttle needs -s 1 as this seems to 
circumvent the buffering problem. 

not sure about the maximum bandwidth you can reach with that and how good you 
really can adjust the bandwith, so please report your findings......

If that is a useful option, can someone please put this into the bugzilla entry?

regards
Roland 



List:       rsync
Subject:    [Bug 7120] Variable bandwidth limit .. bwlimit
From:       samba-bugs () samba ! org
Date:       2013-03-05 15:15:53
Message-ID: E1UCtar-0010tB-0s () samba-bugzilla ! samba ! org
[Download message RAW]

https://bugzilla.samba.org/show_bug.cgi?id=7120

--- Comment #2 from It is me <p...@mnet-online.de> 2013-03-05 15:15:51 UTC ---
Hi,
just a note, due to the fact I am also looking forward for this feature.

I see two options regarding usability and scritablility. :)

1# Piping (not used up to now)

mkfifo /tmp/bla
echo "1000" > /tmp/bla

cat /tmp/bla | rsync ... --bwlimit-stdin ...

changing by just write to the fifo
echo "50" > /tmp/bla


2# file and signal

mktemp > /tmp/bla2
echo "1000" > /tmp/bla2
rsync ... -bwlimit-from=/tmp/bla2 .... &
RSYNCPID=$!
echo "50" > /tmp/bla2
kill -USR1 ${RSYNCPID}

hope the thinking helps.
Me.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
[prev in list] [next in list] [prev in thread] [next in thread] 



-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to