Exclude files bigger than X

Michael Adam ma at SerNet.DE
Tue Nov 25 08:53:03 EST 2003


On Mon, Nov 24, 2003 at 02:18:13PM +0100, Mario Ohnewald wrote:
> I want to rsync a few homedirectories which also contain big 
> *.tar or *.bin files.
> Does rsync have a option where it will NOT transfer files which 
> are bigger than X MB/GB.

How about something like this:

   find [src] -size +1000k | rsync [opts...] --exclude-from=- [src] [dst]

Regards, Michael

More information about the rsync mailing list