brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: rsync --bwlimit=20M stops a linux copy from flooding the link

Linux
~/tips/tip-linux-rsync-bwlimit-throttle

rsync -a --bwlimit=20M /srv/data/ backup:/srv/data/

Limits how fast rsync transfers data, so other traffic keeps working.

A big sync should not make the video call on the same network stutter.

rsync -a --bwlimit=20M /srv/data/ backup:/srv/data/

--bwlimit caps the transfer rate of the data sent over the connection. A plain number means KiB per second, and a suffix such as M sets a multiplier, so 20M is about 20 MiB per second. Very old rsync versions, such as the 2.6.9 that ships with macOS, only take a plain number, so check rsync --version first. Pick a limit below the speed of your link, so that other traffic still has room.

Further reading: rsync manual page

More Linux tips a2query -m rewrite renice -n 10 -p 4242 cat config.yml | xsel -ib xvfb-run -a your-program --some-flag dpkg --get-selections > packages.txt All Linux tips (261) All topics

Link