If you use the rsync utility to keep your backups synchronized between your servers or with a local machine, you might want to prevent the script from using too much bandwidth. However, rsync makes a lots of network I/O. The point of limiting bandwidth is to make sure your backup scripts don’t clog up the network connection.
Naturally, limiting the amount of bandwidth your backups are using is going to make them happen more slowly, but if you can deal with that, this is the way to do it.
Normal rsync command
rsync –avz -e ‘ssh’ /path/to/source user@remotehost:/path/to/dest/
What you’ll want to do is use the –bwlimit parameter with a KB/second value, like this:
rsync –bwlimit=<kb/second> –avz -e ‘ssh’ /path/to/source user@remotehost:/path/to/dest/
So if you wanted to limit transfer to around 10000KB/s (9.7MB/s), enter:
rsync –bwlimit=10000 –avz -e ‘ssh’ /path/to/source user@remotehost:/path/to/dest/
rsync –bwlimit=10000 –avz -e ‘ssh’ /backup/ firstname.lastname@example.org:/backup/