downloading only specific directories from directory tree
Istvan Gabor
suseuser04 at gmail.hu
Sun Jan 22 20:24:57 UTC 2017
On Fri, 20 Jan 2017 18:15:00 -0500, Kevin Korb wrote:
> An include only overrides an exclude that follows it. So, you would
> need something like this:
>
> + */
> + openSUSE_13.2/***
> - *
>
> Then add --prune-empty-dirs to your rsync command line. I left off
> the
> initial ** because it doesn't really mean anything unless
> openSUSE_13.2
> isn't always the entire directory name in which case 1 * would do.
>
> Another way to explain it is that by default everything is included.
> An
> exclude rule makes exceptions. An include rule makes exceptions to
> the
> exclude rule.
Thank you a lot.
This worked the way I wanted.
Istvan
More information about the rsync
mailing list