Include-from ?
jw schultz
jw at pegasys.ws
Sun Aug 3 17:05:01 EST 2003
On Sun, Aug 03, 2003 at 01:35:22AM -0500, Max Kipness wrote:
> Hello -
>
> I just finished doing a search of the archives and couldn't seem to get
> this answered.
>
> Example, I have a root directory containing the following directories:
>
> /Test1
> /Test2
> /Test3
>
> I want to rsync only /Test2 and all subdirs under. So my include-from
> file looks like:
>
> + Test2/*
> - /*
>
> This doesn't work as nothing is synced, and if I do a -vv it tells me
> that nothing is being synced because I've excluded all.
I'm sure it didn't say that. Instead it would have spit out
a bunch of lines including:
excluding directory Test2 because of pattern /*
That is because you never included Test2, only everything
under it.
| + Test2/
| - /*
Would be what you want.
--
________________________________________________________________
J.W. Schultz Pegasystems Technologies
email address: jw at pegasys.ws
Remember Cernan and Schmitt
More information about the rsync
mailing list