Re: transfer speed data
On Thu, Dec 24, 2020 at 12:13:19AM +0800, Jeremy Ardley wrote:
Getting back to the original question, rsync is inherently slower
because both ends do deep file inspection and handshaking to decide
what data transfer is required. scp is usually faster.
If you're rsyncing to a non-existent destination there's nothing to
inspect and reading the files on the source doesn't take longer with
rsync than scp. If you're rsyncing to an existing file tree to update a
small number of files, rsync will typically be much faster because it's
transferring only the delta. For some kinds of files (e.g., sparse
files) rsync can be much faster because it can handle them
intelligently. In certain (mostly pathological) cases involving large
trees on both sides rsync will perform badly because it has to read data
on the reciever and if the delta is high that's wasted work. Bottom
line: YMMV, but in general fear of rsync being slow shouldn't be a
factor in deciding what to use.
Reply to: