<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Ni Hao,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>In rsync, you run it with the --exclude option.  You can also use the --filter option as well - mix and match.<DIV><DIV>This is my line:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>-aqzH --no-p -E --delete --delay-updates --exclude=.htaccess</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I use --no-p to over ride the implied option of preserving permissions from the -a archive flag.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I use delay-updates to get the atomic effect and also because my cron script does some permissions checking at the end and until it is done the rsync can screw with my setup.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I then use the --exclude to keep my .htaccess from being removed as I need it to allow for Indexes on my system.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Cheers,</DIV><DIV>RF.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR><DIV><DIV>On 10 Feb 2007, at 4:03 AM, Kelphon wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"> <DIV class="Section1"><P class="MsoNormal"><FONT size="1" color="navy" face="Arial"><SPAN lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">How to exclude the directory that would be rsync?<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="1" color="navy" face="Arial"><SPAN lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy"><O:P> </O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="1" color="navy" face="Arial"><SPAN lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">Thanks a lot!<O:P></O:P></SPAN></FONT></P> </DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">CentOS-mirror mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:CentOS-mirror@centos.org">CentOS-mirror@centos.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.centos.org/mailman/listinfo/centos-mirror">http://lists.centos.org/mailman/listinfo/centos-mirror</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></DIV></DIV><br><br /></BODY></HTML>