Re: Question on rsync with --exlude/--include



birre wrote:
On 2008-01-30 04:29, user@xxxxxxxxx wrote:
....
If I just use
--include lib\*.rpm \

that seems to have no effect at all, all files get downloaded. I would have expected --include to exclude everything else and run the whole
directory list with each switch incidence (???).


How can I code to download only files with lib in them, as an example?

I would actually want all files matching a short list of partly
wildcarded filenames like *dev*, *lib*, etc. Some sort of an
--exclude-unless is what I'm looking for.






I'm not that good at this usage of rsync, I mostly use it to replicate
everything, and maybe a few excludes.

My advice is to replace --exclude / --include with
--exclude-from=excludes.lst / --include-from=includes.lst

Then fill excludes.lst with your patterns on at each line,
and your "unless" cases in includes.lst , and see what it will do.

Add the option n to rsync , until it looks right, so you don't
mess anything while testing.

Thanks for the advice, I don't have the bandwidth to download everything ..or to finger out how to workaround the constraints :-) I'll try your suggestion next.

In the interim it occured to me that, since the problematic source
is packman where 100mb games are mixed in with 100kb useful packages,
I can sort in my ftp client on descending size and just cut into
the list below 10mb. That's already an improvement.
.



Relevant Pages

  • Re: vss2005 web project
    ... I see a lot of reasons for them not to be in the VSS database binary or not. ... they are just there for customers to download perhaps they are .msi ... these are things that I create and can think of no sane reason why I ... There really needs to be a method to exclude files from the source safe ...
    (microsoft.public.vstudio.sourcesafe)
  • Re: Question on rsync with --exlude/--include
    ... I would have expected --include to exclude everything else and run the whole ... How can I code to download only files with lib in them, ... Add the option n to rsync, until it looks right, so you don't ... mess anything while testing. ...
    (alt.os.linux)
  • Re: Whats going on with the list?
    ... >>I'm seeing sporadic dupes and always have, my mail profile should ... >>exclude them. ... > received, so everytime I had to restart the download, it pulled down all ...
    (Fedora)
  • Re: Cant get wget to exclude directories
    ... > Specify a comma-separated list of directories you wish to exclude ... > from download ... a ruminant with a view. ...
    (comp.unix.shell)
  • Re: dialer pops up..help!!
    ... If I download spyware blaster, will that solve my current dilema? ... Sure do appreciate your help and advice. ... >> I have xp pro on my computer and high speed cable internet, ...
    (microsoft.public.windowsxp.perform_maintain)