Only rsyncing small files

Aaron Morris aaronwmorris at gmail.com
Sat Aug 13 23:04:34 GMT 2005


On 8/13/05, Henning Wangerin
<mailinglists-after-041101_reply-not-possible at hpc.dk> wrote:
> Hi!
> 
> Is there a possibiliy to tell rsync only to copy files less than eg 10Mb
> of size?
> 
> I'm running a dedicated backup-server, and would like to skip backing up
> my downloaded iso-files.
> They can bee downloaded again if requeired ;-)
> 
> --
> Henning Wangerin <mailinglists-after-041101_reply-not-possible at hpc.dk>
> --

You can use rsync in combination with the find command.

ie
find . -type f -size -20480 | rsync -a . user at server:/path/. --files-from=-

The find command could be simplified depending on the version you use.

-- 
Aaron W Morris (decep) <aaronwmorris at gmail.com>


More information about the rsync mailing list