Subject says it all. scp has a nifty bandwidth limiting feature.
I needed to copy a bunch of really big files via a 10Mbit link, without impacting that one for others. So.... I tried
I first tried on my windows box with cygwin. worked like a charm.
But the files are on the bsd box. BSD scp also supports the -l option - but it keeps using up the full 10Mbit, showing 1.1MByte/sec transfer. I waited for ~10 minutes for this to adapt, but no change (cygwin scp needed about a minute to scale down to the 2 Mbit/s = 250 kbyte/s), but the error is stable.
Yes - I could use rsync as workaround -
I needed to copy a bunch of really big files via a 10Mbit link, without impacting that one for others. So.... I tried
scp -l 2000 source-files me@targethost:
I first tried on my windows box with cygwin. worked like a charm.
But the files are on the bsd box. BSD scp also supports the -l option - but it keeps using up the full 10Mbit, showing 1.1MByte/sec transfer. I waited for ~10 minutes for this to adapt, but no change (cygwin scp needed about a minute to scale down to the 2 Mbit/s = 250 kbyte/s), but the error is stable.
Yes - I could use rsync as workaround -
rsync --bwlimit
actually works. But still - is this a known limitation or a bug or what?