Howto limit bandwidth rsync over ssh

url:http://www.yak.net/fqa/404.html
Author: leif

How can I limit the ammount of bandwidth rsync over ssh (or anything else) uses, without a complicated firewall solution?

I guess there's nothing wrong with complicated firewall solutions, if you've got the time to set em up. But if you just need to limit the bandwidth of a certain process, you can use trickle, a portable lightweight userspace bandwidth shaper. I find it works well before ssh in an rsync command:

rsync -auvPe "trickle -d 80 ssh" user@host:/src/ /dst/