sorting files by size

Sebastien Roy roys at iro.umontreal.ca
Tue Dec 16 15:13:54 GMT 2008


Hi everyone,

I use rsync to incrementally maintain a complete mirror of my laptop.
Due to the presence of large files (video), I often have to interrupt
rsync and restart it later.

In this context, an option "--sort-by-size" would be very helpful to get
the maximum number of files transfered before an interruption. "size"
could be the actual file size, or the ammount of bytes that rsync intend
to transfer.

For now, I use
rsync --max-size ...
rsync --min-size ...
To get small files sent first. But this requires scanning the
directories twice.

Sincerely,

Sebastien






More information about the rsync mailing list