order transfers by file size
wayned at samba.org
Thu Apr 9 22:14:40 GMT 2009
On Wed, Apr 08, 2009 at 06:19:52PM +0300, Victoria Muntean wrote:
> Is it possible to have rsync order transfers by file size (smallest
> files first) ?
The only thing that is currently possible is to combine --min-size and
--max-size to do multiple transfers with different ranges of file sizes.
> Would it be a big patch ?
As long as you're willing to disable the incremental file-list feature,
someone could write a modified generator process that would either sort
the files into a custom processing order (with all dirs needing to be
sorted early in the list) without affecting the numbering of the files
(which can be done in a similar way as the iconv support), or an easier
approach would be to have the code internally perform multiple passes
over the file-list and process/ignore files by ranges of size. The
latter might be pretty simple by using the existing min/max size options
and just adding an extra loop into the generator code (as well as
disabling incremental recursion). This is not something I plan to write,
More information about the rsync