Re: Question on rsync with --exlude/--include
- From: user@xxxxxxxxx
- Date: Thu, 31 Jan 2008 09:59:18 -0500
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.
.
- References:
- Question on rsync with --exlude/--include
- From: user
- Re: Question on rsync with --exlude/--include
- From: birre
- Re: Question on rsync with --exlude/--include
- From: user
- Re: Question on rsync with --exlude/--include
- From: birre
- Question on rsync with --exlude/--include
- Prev by Date: Problems compiling apache
- Next by Date: Re: {Commercial} Safesquid Version 4.2.2.RC7 released
- Previous by thread: Re: Question on rsync with --exlude/--include
- Next by thread: Booting up - keeps telling me to run fsck ...
- Index(es):
Relevant Pages
|