Is there a way to set rsync excludes by filesize? I already do excludes by a wild card on the name but I needed something a bit more sophisticated this time around. I have files with the extension .nc (netcdf files) which tend to be huge before the users post-process them. I want all files with a .nc extension excluded if they are, say, 100+ MB in size. Is there a way to do this via rsync? [Actually I use rsnapshot and I had posted this question there earlier; but on second thought rsnapshot can be passed on arbitrary rsync options and this seems more like a fundamental rsync issue. Sorry for the multipost.] -- Rahul
On Tue 29 Sep 2009, Rahul Nabar wrote:> Is there a way to set rsync excludes by filesize? I already doDid you look in the manpage? "man rsync", search for "size" and the 5th hit describes it. Paul
On Wed, Sep 30, 2009 at 4:41 AM, Paul Slootman <paul+rsync at wurtel.net> wrote:> On Tue 29 Sep 2009, Rahul Nabar wrote: > >> Is there a way to set rsync excludes by filesize? I already do > > Did you look in the manpage? > > "man rsync", search for "size" and the 5th hit describes it.Thanks Paul! I deserve a RTFM. Had done that on rsnapshot but missed out on doing it on rsync. -- Rahul
Seemingly Similar Threads
- rsync mirror solution: how to prevent accidental mirror deletion
- rsync excluded file syntax errors
- which server to make client and which the server for rsync.
- Getting rsync to store timing information in its logs
- rsync --daemon. Can I open more than one instances?