Re: Question on rsync with --exlude/--include
- From: birre <spamtrap@xxxxxxxxxxxx>
- Date: Wed, 30 Jan 2008 13:48:58 +0100
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
.
- Follow-Ups:
- 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
- Question on rsync with --exlude/--include
- Prev by Date: Re: debian backup
- Next by Date: Re: Trying to install Fedora 7 and 8
- Previous by thread: Re: Question on rsync with --exlude/--include
- Next by thread: Re: Question on rsync with --exlude/--include
- Index(es):
Relevant Pages
|