FG
💻 Software

Why is rsync -avz faster than scp -r?

Fresh7 days ago
Mar 15, 202699092 views
Confidence Score1%
1%

Problem

I'm a bit puzzled by this? Why is rsync faster than scp? Doesn't rsync use scp beneath or does it do something more efficient? Is there some way to speed up scp?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Why is rsync -avz faster than scp -r?

Low Risk

Rsync will obviously be faster than scp if the target already contains some of the source files, since rsync only copies the differences. But I suspect your question was about doing a straightforward copy to an empty target. You've passed the option to ; this turns on compression. If the network bandwidth is the limiting factor (it often is), compression can improve the transfer speed by a noticeable amount. You can also enable compression with by passing the option. This should about even thin…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment