title: "Parallel Rsync" date: 2021-01-17 11:15:39.688000+00:00
rsync will run in sequential mode by default. This can cause transfers to take a long time, and it's unlikely to make full use of your bandwidth if you're copying many small files (for example, when syncing a home folder). This situation can be slightly improved by using
xargs to run many parallel
ls /home/yourname | xargs -n1 -P8 -I% rsync -Pa % destination:/home/yourname/
You can adjust the
-P argument to change the number of parallel processes to run.