#160982 rsync alphabetizes files

Package:
rsync
Source:
rsync
Description:
fast, versatile, remote (and local) file-copying tool
Submitter:
Adam Heath
Date:
2026-05-18 14:53:01 UTC
Severity:
normal
Tags:
#160982#5
Date:
2002-09-15 19:00:03 UTC
From:
To:
When uploading several files, rsync alphabetizes the file list, before
sending.

This is very suboptimal.  It means that file access is slower(esp. in large
dirs).

It is also buggy.  If I pass 10 files on the cmdline to upload, I want them
sent in the same order as the cmdline.  Because of this reording, when I use
rsync to upload packages, the _changes is uploaded *before* some debs, and
this causes false rejects to happen.

Please, don't alphabetize the file list.  It's a waste of time, and causes odd
issues.

#160982#10
Date:
2003-03-07 13:04:06 UTC
From:
To:
[ Note: I'm not the maintainer ]
set of files. To quickly find which files do and do not exist on the
other side, it's easiest to sort both lists first...

Explain?

It's not buggy, it's just not what you want.

Rsync is suboptimal for copying files of which you know the destination
doesn't exist, up to 3 times slower than ssh depending on the data. So
don't use it for this purpose.

I think this is a typical case of "wontfix", unfortunately.


Paul Slootman

#160982#19
Date:
2026-05-18 14:50:34 UTC
From:
To:
Hello Admin,
the issue is well described. But it is also well described why rsync has
to act like this.
There is no way to modify that behavior without breaking the core
behavior and features of rsync.

Therefor, closing it.

If you see it different I would suggest to open a ticket at the upstream
project, where folks of
more insights in the internals of rsync.

Regards,
Christian Buhtz