On Thu, Mar 29, 2001 at 04:28:08PM -0500, Magdalena Hewryk wrote:
> Hi,
> I am still having a problem with excluding ../tmp directory but copy over
> ../tmp/content.html file and ../tmp/index.html.
>
> I can't --exclude "*" --include "tmp/" --include "tmp/content.html". I
> simply cannot exclude "*" for I have 10000 directories to be updated and I
> cannot include them with --include option.
>
>
> The syntax below doesn't give me the result I want.
> /usr/local/bin/rsync --rsync-path=/usr/local/bin/rsync --rsh
> "/usr/bin/rsh" -av --backup --suffix=_prom+
> --include-from=/export/app/infilelist
> --exclude-from=/export/app/outfilelist/
>
> outfilelist
> /tmp
>
> infilelist
> content.html
> index.html
>
> Any advise?
You have to include a parent directory in order to include a file. Is it
just that you want to exclude all the other files in /tmp? Using /tmp/* in
outfilelist should work for that.
- Dave Dykstra