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?
Thanks,
Magda
> -----Original Message-----
> From: Magdalena Hewryk
> Sent: Thursday, March 29, 2001 3:27 PM
> To: [EMAIL PROTECTED]
> Subject: RE: --include vs --exclude-form
>
>
> Ops, I've found the answer... "if the pattern starts with "+"
> then it is always considered an include pattern, even if
> specified as part of an exclude option.
>
> outfilelist
> + tmp
>
> Sorry I bug you.
> Thanks,
> Magda
>
> > -----Original Message-----
> > From: Magdalena Hewryk [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, March 29, 2001 3:11 PM
> > To: [EMAIL PROTECTED]
> > Subject: --include vs --exclude-form
> >
> >
> > Hi,
> >
> > I'm trying to exclude ../tmp ../new ../.precious and other
> > directories
> > from mirroring but I need ../tmp/content.html and
> > ../tmp/index.html to be
> > updated regardless of the excluding list on the receiving host.
> >
> > The exclude filelist works but it blocks all the files and
> > ../tmp/content.html and ../tmp/index.html are not copied from
> > the excluding
> > directories even if I added them to the --include-from file
> > or to --include
> > option.
> >
> > Syntax:
> > /usr/local/bin/rsync --rsync-path=/usr/local/bin/rsync --rsh
> > "/usr/bin/rsh"
> > -av --backup --suffix=_prom+ --exclude-from=/export/app/outfilelist/
> > --exclude "alpha.html" --include-from=/export/app/infilelist
> > /export/app/docs host2:/app/mirror > /tmp/rsync_list1.log
> >
> >
> > How can I force to copy over ../tmp/content.html and
> > ../tmp/index.html files
> > even if they exist in the excluding directories?
> >
> > Any hints?
> > Thanks,
> > Magda
> >
>