Quick Linux Tip #52:
Try: rsync -avz --bwlimit=5000 /source/ linuxteck@backup:/dest/
Info: --bwlimit=5000 limits rsync's transfer rate to about 5,000 KB/s, helping prevent large file transfers from consuming all available network bandwidth.
Examples:
- $
rsync -avz --bwlimit=10M /src/ user@host:/dst/# Limit to 10 MB/s - $
scp -l 40000 file.iso user@host:# Limit SCP bandwidth in Kbit/s - $
wget --limit-rate=5m http://example.com/big.iso# Limit wget transfer rate
Note: rsync's --bwlimit value is expressed in bytes per second unless a supported suffix is used. SCP's -l option uses Kbit/s, so its value is not directly comparable to rsync's. Test bandwidth limits during peak hours to find a balance between transfer speed and network availability.
Leave a Reply