rsync parts of linux kernel

Chris Cohen kildau-ml at gmx.de
Sat Oct 13 14:15:59 GMT 2007


On Saturday 13 October 2007 14:28:01 Paul Slootman wrote:
> On Sat 13 Oct 2007, Chris Cohen wrote:
> > i want to set up a linux kernel mirror for our 43 devs, but am running
> > into problems with some filter rules. I don't want to mirror the entire
> > kernel tree (running out of space on our local mirror :( ), but only the
> > major release (eg linux-2.6.22.tar.bz2) and the patches (eg
> > patch-2.6.22.1.tar.bz2).
> > I've tried serveral combinations of include/exclude and/or filter rules
> > like: + linux-2.6.[0-9].tar.bz2
> > + patch-2.6.[0-9].bz2
> > - *
> > But this does for sure only mirror til linux-2.6.9.tar.bz2. A simple *
> > wildcare doesn't fit my needs either :(
>
> How about the simple fix of adding two more lines:
>
> + linux-2.6.[1-9][0-9].tar.bz2
> + patch-2.6.[1-9][0-9].bz2
>
> And if you want your example of patch-2.6.22.1.tar.bz2 you also need:
>
> + patch-2.6.[0-9].[1-9].bz2
> + patch-2.6.[1-9][0-9].[1-9].bz2
>
> etc.
>
> That should help until Linus starts releasing 2.6.100 :)
>
> Perhaps you should think about what it is you *don't* want.
> Do you mean you don't want linux-2.6.22.1.tar.bz2 etc.?
> Then perhaps:
>
> - linux-2.6.*.gz
> - linux-2.6.[0-9].[0-9].tar.*
> - linux-2.6.[1-9][0-9].[0-9].tar.*
> + linux-2.6.*.bz2
> - patch-2.6.*.gz
> + patch-2.6.*.bz2
> - *
>
> Completely untested, I always have to test these things, but you get the
> idea I hope.
>
yep I think I solved it :)
Thanks for your hints

-- 
Greetings
Chris


More information about the rsync mailing list