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



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.

/bb
.



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
    ... birre wrote: ... I would have expected --include to exclude everything else and run the whole ... 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. ...
    (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)
  • unable to download i368 dvd iso file using rsync
    ... I am using rsync to download FC3 DVD iso, and it now shows the status as: ... The UK Mirror Service will now be operating permanently from ... Looks like this problem is with every rsync mirror in North America that has the i386 dvd iso file. ...
    (Fedora)